diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-08-10 16:21:40 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-08-15 08:43:21 +0200 |
commit | b50d6a593dbd4e17cf2caee0e6765a0d22f49e76 (patch) | |
tree | 5fe86f57bbfc337c6eed8d15328e0a36b5ace846 /store | |
parent | b3dfb1e807eba91eed35a02d74fe8a917c41ee6f (diff) |
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/40977
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'store')
-rw-r--r-- | store/source/storbase.hxx | 21 | ||||
-rw-r--r-- | store/source/stortree.hxx | 14 |
2 files changed, 0 insertions, 35 deletions
diff --git a/store/source/storbase.hxx b/store/source/storbase.hxx index 3b677b405f22..fbead214e185 100644 --- a/store/source/storbase.hxx +++ b/store/source/storbase.hxx @@ -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); diff --git a/store/source/stortree.hxx b/store/source/stortree.hxx index 2f18b2e50ef7..872ff0821432 100644 --- a/store/source/stortree.hxx +++ b/store/source/stortree.hxx @@ -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 |