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

Remove unnecessary user-provided copy functions

...with the added benefit of the implementation-provided versions being trivial
and so avoiding GCC 8 -Werror=class-memaccess when these classes are subject of
memcpy/memmove in store/source/stortree.cxx and store/source/storpage.cxx.

Change-Id: I684109d8743eb7f1fa57c6925d738b11d934a7cf
Reviewed-on: https://gerrit.libreoffice.org/40977Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst b3dfb1e8
......@@ -179,17 +179,6 @@ struct OStorePageKey
m_nHigh (store::htonl(nHigh))
{}
OStorePageKey (const OStorePageKey & rhs)
: m_nLow (rhs.m_nLow), m_nHigh (rhs.m_nHigh)
{}
OStorePageKey & operator= (const OStorePageKey & rhs)
{
m_nLow = rhs.m_nLow;
m_nHigh = rhs.m_nHigh;
return *this;
}
/** Comparison.
*/
bool operator== (const OStorePageKey & rhs) const
......@@ -224,16 +213,6 @@ struct OStorePageLink
std::swap(m_nAddr, rhs.m_nAddr);
}
OStorePageLink (const OStorePageLink & rhs)
: m_nAddr (rhs.m_nAddr)
{}
OStorePageLink & operator= (const OStorePageLink & rhs)
{
m_nAddr = rhs.m_nAddr;
return *this;
}
OStorePageLink & operator= (sal_uInt32 nAddr)
{
m_nAddr = store::htonl(nAddr);
......
......@@ -56,20 +56,6 @@ struct OStoreBTreeEntry
m_nAttrib (store::htonl(0))
{}
OStoreBTreeEntry (const OStoreBTreeEntry & rhs)
: m_aKey (rhs.m_aKey),
m_aLink (rhs.m_aLink),
m_nAttrib (rhs.m_nAttrib)
{}
OStoreBTreeEntry& operator= (const OStoreBTreeEntry & rhs)
{
m_aKey = rhs.m_aKey;
m_aLink = rhs.m_aLink;
m_nAttrib = rhs.m_nAttrib;
return *this;
}
/** Comparison.
*/
enum CompareResult
......
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