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 /include/svl/ilstitem.hxx | |
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>
Diffstat (limited to 'include/svl/ilstitem.hxx')
-rw-r--r-- | include/svl/ilstitem.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
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; |