diff options
Diffstat (limited to 'registry')
-rw-r--r-- | registry/source/reflread.cxx | 17 | ||||
-rw-r--r-- | registry/source/reflread.hxx | 11 |
2 files changed, 3 insertions, 25 deletions
diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx index 15e3f2f50841..aa8d61a85db6 100644 --- a/registry/source/reflread.cxx +++ b/registry/source/reflread.cxx @@ -1749,26 +1749,9 @@ RegistryTypeReader::RegistryTypeReader(const sal_uInt8* buffer, m_hImpl = createEntry(buffer, bufferLen, copyData); } -RegistryTypeReader::RegistryTypeReader(const RegistryTypeReader& toCopy) - : m_hImpl(toCopy.m_hImpl) -{ typereg_reader_acquire(m_hImpl); } - - RegistryTypeReader::~RegistryTypeReader() { typereg_reader_release(m_hImpl); } -RegistryTypeReader& RegistryTypeReader::operator == (const RegistryTypeReader& toAssign) -{ - if (m_hImpl != toAssign.m_hImpl) - { - typereg_reader_release(m_hImpl); - m_hImpl = toAssign.m_hImpl; - typereg_reader_acquire(m_hImpl); - } - - return *this; -} - RTTypeClass RegistryTypeReader::getTypeClass() const { return typereg_reader_getTypeClass(m_hImpl); } diff --git a/registry/source/reflread.hxx b/registry/source/reflread.hxx index a4f3b9feb515..6912fa8baf45 100644 --- a/registry/source/reflread.hxx +++ b/registry/source/reflread.hxx @@ -51,16 +51,9 @@ public: sal_uInt32 bufferLen, bool copyData); - /// Copy constructcor - RegistryTypeReader(const RegistryTypeReader& toCopy); - /// Destructor. The Destructor frees the data block if the copyData flag was TRUE. ~RegistryTypeReader(); - /// Assign operator - RegistryTypeReader& operator == (const RegistryTypeReader& toAssign); - - /** returns the typeclass of the type represented by this blob. This function will always return the type class without the internal @@ -113,7 +106,9 @@ public: */ rtl::OUString getFieldFileName( sal_uInt16 index ) const; -protected: +private: + RegistryTypeReader(RegistryTypeReader &) = delete; + void operator =(RegistryTypeReader) = delete; /// stores the handle of an implementation class TypeReaderImpl m_hImpl; |