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