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/SwRewriter.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/SwRewriter.hxx')
-rw-r--r-- | sw/inc/SwRewriter.hxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sw/inc/SwRewriter.hxx b/sw/inc/SwRewriter.hxx index 4fc2658a801f..0adc40e87780 100644 --- a/sw/inc/SwRewriter.hxx +++ b/sw/inc/SwRewriter.hxx @@ -39,7 +39,6 @@ class SW_DLLPUBLIC SwRewriter public: SwRewriter(); - ~SwRewriter(); void AddRule(SwUndoArg eWhat, const OUString & rWith); |