diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-07-26 12:09:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-07-26 20:42:07 +0200 |
commit | 490838e438b5f6a049e6ff2ed2a89de9639585a4 (patch) | |
tree | 1b90483bb7cc49cd2023899964cf2e08b3ecb20b /dbaccess/source | |
parent | 5065bcf513147c1b92edc9d393768b01bc693c3a (diff) |
dbaccess: 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: Ic07bf2a39ee18368d2d56b5bc6e666758367b7d7
Reviewed-on: https://gerrit.libreoffice.org/58074
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'dbaccess/source')
-rw-r--r-- | dbaccess/source/core/inc/composertools.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dbaccess/source/core/inc/composertools.hxx b/dbaccess/source/core/inc/composertools.hxx index 91f790495948..d0bfdc3ff7d6 100644 --- a/dbaccess/source/core/inc/composertools.hxx +++ b/dbaccess/source/core/inc/composertools.hxx @@ -66,6 +66,11 @@ namespace dbaccess { } + TokenComposer(TokenComposer const &) = default; + TokenComposer(TokenComposer &&) = default; + TokenComposer & operator =(TokenComposer const &) = default; + TokenComposer & operator =(TokenComposer &&) = default; + void operator() (const OUString& lhs) { append(lhs); |