Kaydet (Commit) cd047455 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Make RegistryTypeReader non-copyable

(and note the operator == vs. = typo)

Change-Id: I4567927f3f702f8e74b168becce4002e84d5c7a0
üst a843c457
......@@ -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); }
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment