summaryrefslogtreecommitdiff
path: root/sw/inc/postithelper.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/postithelper.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/postithelper.hxx')
-rw-r--r--sw/inc/postithelper.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/inc/postithelper.hxx b/sw/inc/postithelper.hxx
index d9a0f8aac3e3..7678f4bde1fd 100644
--- a/sw/inc/postithelper.hxx
+++ b/sw/inc/postithelper.hxx
@@ -108,6 +108,11 @@ public:
{
}
+ SwSidebarItem(SwSidebarItem const &) = default;
+ SwSidebarItem(SwSidebarItem &&) = default;
+ SwSidebarItem & operator =(SwSidebarItem const &) = default;
+ SwSidebarItem & operator =(SwSidebarItem &&) = default;
+
virtual SwPosition GetAnchorPosition() const = 0;
virtual bool UseElement() = 0;
virtual const SwFormatField& GetFormatField() const = 0;