summaryrefslogtreecommitdiff
path: root/include/svl/globalnameitem.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-07-26 13:54:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-07-27 08:24:56 +0200
commit08ec78be6fcc4465db0ed463bc68f841c4d43c97 (patch)
tree2e4b80e182f8bcdf43c308101803b001efc7c082 /include/svl/globalnameitem.hxx
parent10eb292bcae870b022ae8995ecc724fe2d3bfb7c (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/globalnameitem.hxx')
-rw-r--r--include/svl/globalnameitem.hxx5
1 files changed, 5 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; }