[Libreoffice-commits] core.git: l10ntools/inc
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Jul 27 10:54:58 UTC 2018
l10ntools/inc/xmlparse.hxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 228b9801f1ec440cf3090a6f2ff24722c5bc26d0
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Jul 27 09:36:05 2018 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Jul 27 12:54:32 2018 +0200
l10ntools: 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: I4b3833ceb9da0a83be45c808f163dfad97f9c946
Reviewed-on: https://gerrit.libreoffice.org/58164
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx
index 027076f39725..d07dd1b86afb 100644
--- a/l10ntools/inc/xmlparse.hxx
+++ b/l10ntools/inc/xmlparse.hxx
@@ -82,6 +82,11 @@ protected:
public:
virtual XMLNodeType GetNodeType() const = 0;
virtual ~XMLNode(){}
+
+ XMLNode(XMLNode const &) = default;
+ XMLNode(XMLNode &&) = default;
+ XMLNode & operator =(XMLNode const &) = default;
+ XMLNode & operator =(XMLNode &&) = default;
};
More information about the Libreoffice-commits
mailing list