diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-07-26 14:13:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-07-27 11:35:39 +0200 |
commit | c441672c0d99e08faa0667afd0ea804732b66c22 (patch) | |
tree | a69ad9cd03dfe97aac5cd1436ddf79ee56da9306 /include/cppuhelper/implbase.hxx | |
parent | b83cc2b0108a4ec2087221a6150a66578788e5b4 (diff) |
cppuhelper: 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. (For LIBO_INTERNAL_ONLY.)
Change-Id: I9da48559b083bdec9b1b4014634f6f3bfb1c3de3
Reviewed-on: https://gerrit.libreoffice.org/58107
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/cppuhelper/implbase.hxx')
-rw-r--r-- | include/cppuhelper/implbase.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/cppuhelper/implbase.hxx b/include/cppuhelper/implbase.hxx index cfd68022c1e6..c946fb9cb052 100644 --- a/include/cppuhelper/implbase.hxx +++ b/include/cppuhelper/implbase.hxx @@ -104,6 +104,11 @@ protected: virtual ~WeakImplHelper() override {} public: + WeakImplHelper(WeakImplHelper const &) = default; + WeakImplHelper(WeakImplHelper &&) = default; + WeakImplHelper & operator =(WeakImplHelper const &) = default; + WeakImplHelper & operator =(WeakImplHelper &&) = default; + css::uno::Any SAL_CALL queryInterface(css::uno::Type const & aType) override { return WeakImplHelper_query(aType, cd::get(), this, this); } @@ -152,6 +157,11 @@ protected: virtual ~ImplInheritanceHelper() {} public: + ImplInheritanceHelper(ImplInheritanceHelper const &) = default; + ImplInheritanceHelper(ImplInheritanceHelper &&) = default; + ImplInheritanceHelper & operator =(ImplInheritanceHelper const &) = default; + ImplInheritanceHelper & operator =(ImplInheritanceHelper &&) = default; + css::uno::Any SAL_CALL queryInterface(css::uno::Type const & aType) override { css::uno::Any ret(ImplHelper_queryNoXInterface(aType, cd::get(), this)); |