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/implbase9.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/implbase9.hxx')
-rw-r--r-- | include/cppuhelper/implbase9.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cppuhelper/implbase9.hxx b/include/cppuhelper/implbase9.hxx index ece67befea76..a71fd7c7eba2 100644 --- a/include/cppuhelper/implbase9.hxx +++ b/include/cppuhelper/implbase9.hxx @@ -78,6 +78,14 @@ namespace cppu { struct cd : public rtl::StaticAggregate< class_data, ImplClassData9< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, ImplHelper9<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9> > > {}; public: +#if defined LIBO_INTERNAL_ONLY + ImplHelper9() = default; + ImplHelper9(ImplHelper9 const &) = default; + ImplHelper9(ImplHelper9 &&) = default; + ImplHelper9 & operator =(ImplHelper9 const &) = default; + ImplHelper9 & operator =(ImplHelper9 &&) = default; +#endif + virtual css::uno::Any SAL_CALL queryInterface( css::uno::Type const & rType ) SAL_OVERRIDE { return ImplHelper_query( rType, cd::get(), this ); } virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE |