diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-07-27 09:55:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-07-27 13:53:57 +0200 |
commit | 0920b06d3d8a148ff547ca2b373edc62cc280357 (patch) | |
tree | 5addd9a69f8a321eebb31c23dab353317d6f68ad /sw/inc/ccoll.hxx | |
parent | d77d6983602cb468621b34e3561a85040f5a3018 (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/ccoll.hxx')
-rw-r--r-- | sw/inc/ccoll.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/inc/ccoll.hxx b/sw/inc/ccoll.hxx index 4ffbd9e77af9..3b6ef8b7d11b 100644 --- a/sw/inc/ccoll.hxx +++ b/sw/inc/ccoll.hxx @@ -46,6 +46,10 @@ public: SwCondCollItem(); virtual ~SwCondCollItem() override; + SwCondCollItem(SwCondCollItem const &) = default; + SwCondCollItem(SwCondCollItem &&) = default; + SwCondCollItem & operator =(SwCondCollItem const &) = default; + SwCondCollItem & operator =(SwCondCollItem &&) = default; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual bool operator==( const SfxPoolItem& ) const override; |