summaryrefslogtreecommitdiff
path: root/include/svl/hint.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/hint.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/hint.hxx')
-rw-r--r--include/svl/hint.hxx6
1 files changed, 6 insertions, 0 deletions
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; }
};