diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-07-26 13:54:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-07-27 08:24:56 +0200 |
commit | 08ec78be6fcc4465db0ed463bc68f841c4d43c97 (patch) | |
tree | 2e4b80e182f8bcdf43c308101803b001efc7c082 | |
parent | 10eb292bcae870b022ae8995ecc724fe2d3bfb7c (diff) |
svl: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9)
...by explicitly defaulting the copy/move functions (and, where needed in turn,
also a default ctor) for classes that have a user-declared dtor that does
nothing other than an implicitly-defined one would do, but needs to be user-
declared because it is virtual and potentially serves as a key function to
emit the vtable, or is non-public, etc.
Change-Id: I8c900426c49701afc94094115ec0c2d5b1af90d9
Reviewed-on: https://gerrit.libreoffice.org/58102
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | include/svl/globalnameitem.hxx | 5 | ||||
-rw-r--r-- | include/svl/grabbagitem.hxx | 5 | ||||
-rw-r--r-- | include/svl/hint.hxx | 6 | ||||
-rw-r--r-- | include/svl/ilstitem.hxx | 5 | ||||
-rw-r--r-- | include/svl/int64item.hxx | 5 | ||||
-rw-r--r-- | include/svl/lckbitem.hxx | 5 | ||||
-rw-r--r-- | include/svl/poolitem.hxx | 5 | ||||
-rw-r--r-- | include/svl/slstitm.hxx | 5 |
8 files changed, 41 insertions, 0 deletions
diff --git a/include/svl/globalnameitem.hxx b/include/svl/globalnameitem.hxx index 7c12cc3a6bf1..3ce25307ecb4 100644 --- a/include/svl/globalnameitem.hxx +++ b/include/svl/globalnameitem.hxx @@ -34,6 +34,11 @@ public: SfxGlobalNameItem( sal_uInt16 nWhich, const SvGlobalName& ); virtual ~SfxGlobalNameItem() override; + SfxGlobalNameItem(SfxGlobalNameItem const &) = default; + SfxGlobalNameItem(SfxGlobalNameItem &&) = default; + SfxGlobalNameItem & operator =(SfxGlobalNameItem const &) = default; + SfxGlobalNameItem & operator =(SfxGlobalNameItem &&) = default; + virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; const SvGlobalName& GetValue() const { return m_aName; } diff --git a/include/svl/grabbagitem.hxx b/include/svl/grabbagitem.hxx index 9608a08579d5..d938d526f710 100644 --- a/include/svl/grabbagitem.hxx +++ b/include/svl/grabbagitem.hxx @@ -27,6 +27,11 @@ public: SfxGrabBagItem(sal_uInt16 nWhich); ~SfxGrabBagItem() override; + SfxGrabBagItem(SfxGrabBagItem const &) = default; + SfxGrabBagItem(SfxGrabBagItem &&) = default; + SfxGrabBagItem & operator =(SfxGrabBagItem const &) = default; + SfxGrabBagItem & operator =(SfxGrabBagItem &&) = default; + const std::map<OUString, css::uno::Any>& GetGrabBag() const { return m_aMap; diff --git a/include/svl/hint.hxx b/include/svl/hint.hxx index b229d7f9b7cf..cda13c11e313 100644 --- a/include/svl/hint.hxx +++ b/include/svl/hint.hxx @@ -206,6 +206,12 @@ public: SfxHint() : mnId(SfxHintId::NONE) {} explicit SfxHint( SfxHintId nId ) : mnId(nId) {} virtual ~SfxHint() COVERITY_NOEXCEPT_FALSE; + + SfxHint(SfxHint const &) = default; + SfxHint(SfxHint &&) = default; + SfxHint & operator =(SfxHint const &) = default; + SfxHint & operator =(SfxHint &&) = default; + SfxHintId GetId() const { return mnId; } }; diff --git a/include/svl/ilstitem.hxx b/include/svl/ilstitem.hxx index a5916eadf1f1..198af2747fd0 100644 --- a/include/svl/ilstitem.hxx +++ b/include/svl/ilstitem.hxx @@ -36,6 +36,11 @@ public: SfxIntegerListItem( sal_uInt16 nWhich, const css::uno::Sequence < sal_Int32 >& rList ); virtual ~SfxIntegerListItem() override; + SfxIntegerListItem(SfxIntegerListItem const &) = default; + SfxIntegerListItem(SfxIntegerListItem &&) = default; + SfxIntegerListItem & operator =(SfxIntegerListItem const &) = default; + SfxIntegerListItem & operator =(SfxIntegerListItem &&) = default; + const std::vector< sal_Int32 >& GetList() const { return m_aList; } virtual bool operator==( const SfxPoolItem& ) const override; diff --git a/include/svl/int64item.hxx b/include/svl/int64item.hxx index 9a4defcd0e8b..583f435dde94 100644 --- a/include/svl/int64item.hxx +++ b/include/svl/int64item.hxx @@ -23,6 +23,11 @@ public: virtual ~SfxInt64Item() override; + SfxInt64Item(SfxInt64Item const &) = default; + SfxInt64Item(SfxInt64Item &&) = default; + SfxInt64Item & operator =(SfxInt64Item const &) = default; + SfxInt64Item & operator =(SfxInt64Item &&) = default; + virtual bool operator== ( const SfxPoolItem& rItem ) const override; virtual bool GetPresentation( diff --git a/include/svl/lckbitem.hxx b/include/svl/lckbitem.hxx index ca5402cf2933..54b52a42aff6 100644 --- a/include/svl/lckbitem.hxx +++ b/include/svl/lckbitem.hxx @@ -33,6 +33,11 @@ public: SfxLockBytesItem( sal_uInt16 nWhich, SvStream & ); virtual ~SfxLockBytesItem() override; + SfxLockBytesItem(SfxLockBytesItem const &) = default; + SfxLockBytesItem(SfxLockBytesItem &&) = default; + SfxLockBytesItem & operator =(SfxLockBytesItem const &) = default; + SfxLockBytesItem & operator =(SfxLockBytesItem &&) = default; + virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual SfxPoolItem* Create(SvStream &, sal_uInt16 nItemVersion) const override; diff --git a/include/svl/poolitem.hxx b/include/svl/poolitem.hxx index 1f49b16400a5..a7f90980ca34 100644 --- a/include/svl/poolitem.hxx +++ b/include/svl/poolitem.hxx @@ -253,6 +253,11 @@ public: explicit SfxVoidItem( sal_uInt16 nWhich ); virtual ~SfxVoidItem() override; + SfxVoidItem(SfxVoidItem const &) = default; + SfxVoidItem(SfxVoidItem &&) = default; + SfxVoidItem & operator =(SfxVoidItem const &) = default; + SfxVoidItem & operator =(SfxVoidItem &&) = default; + virtual bool operator==( const SfxPoolItem& ) const override; virtual bool GetPresentation( SfxItemPresentation ePres, diff --git a/include/svl/slstitm.hxx b/include/svl/slstitm.hxx index 7f11ecbe4597..b6ce5d79417d 100644 --- a/include/svl/slstitm.hxx +++ b/include/svl/slstitm.hxx @@ -38,6 +38,11 @@ public: SfxStringListItem( sal_uInt16 nWhich, SvStream& rStream ); virtual ~SfxStringListItem() override; + SfxStringListItem(SfxStringListItem const &) = default; + SfxStringListItem(SfxStringListItem &&) = default; + SfxStringListItem & operator =(SfxStringListItem const &) = default; + SfxStringListItem & operator =(SfxStringListItem &&) = default; + std::vector<OUString>& GetList(); const std::vector<OUString>& GetList() const; |