summaryrefslogtreecommitdiff
path: root/sw/inc/printdata.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-07-27 09:55:44 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-07-27 13:53:57 +0200
commit0920b06d3d8a148ff547ca2b373edc62cc280357 (patch)
tree5addd9a69f8a321eebb31c23dab353317d6f68ad /sw/inc/printdata.hxx
parentd77d6983602cb468621b34e3561a85040f5a3018 (diff)
sw: 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.; and by removing explicitly user- provided functions that do the same as their implicitly-defined counterparts, but may prevent implicitly declared copy functions from being defined as non- deleted in the future. (Even if such a user-provided function was declared non-inline in an include file, the apparently-used implicitly-defined copy functions are already include, so why bother with non-inline functions.) Change-Id: Ib4a48431398d40858d9e2ee1fd685b1f223a5423 Reviewed-on: https://gerrit.libreoffice.org/58168 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/inc/printdata.hxx')
-rw-r--r--sw/inc/printdata.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/inc/printdata.hxx b/sw/inc/printdata.hxx
index a87232c6b95c..ef008593cc7e 100644
--- a/sw/inc/printdata.hxx
+++ b/sw/inc/printdata.hxx
@@ -99,6 +99,11 @@ public:
virtual ~SwPrintData() {}
+ SwPrintData(SwPrintData const &) = default;
+ SwPrintData(SwPrintData &&) = default;
+ SwPrintData & operator =(SwPrintData const &) = default;
+ SwPrintData & operator =(SwPrintData &&) = default;
+
bool operator==(const SwPrintData& rData)const
{
return