summaryrefslogtreecommitdiffstats
path: root/include/cppuhelper/implbase11.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-07-26 14:13:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-07-27 11:35:39 +0200
commitc441672c0d99e08faa0667afd0ea804732b66c22 (patch)
treea69ad9cd03dfe97aac5cd1436ddf79ee56da9306 /include/cppuhelper/implbase11.hxx
parentloplugin:stringloop in basic, framework, sax, svtools (diff)
downloadcore-c441672c0d99e08faa0667afd0ea804732b66c22.tar.gz
core-c441672c0d99e08faa0667afd0ea804732b66c22.zip
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/implbase11.hxx')
-rw-r--r--include/cppuhelper/implbase11.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cppuhelper/implbase11.hxx b/include/cppuhelper/implbase11.hxx
index 6082880d88e7..937705b3c2a5 100644
--- a/include/cppuhelper/implbase11.hxx
+++ b/include/cppuhelper/implbase11.hxx
@@ -80,6 +80,14 @@ namespace cppu
{
struct cd : public rtl::StaticAggregate< class_data, ImplClassData11< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, ImplHelper11<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11> > > {};
public:
+#if defined LIBO_INTERNAL_ONLY
+ ImplHelper11() = default;
+ ImplHelper11(ImplHelper11 const &) = default;
+ ImplHelper11(ImplHelper11 &&) = default;
+ ImplHelper11 & operator =(ImplHelper11 const &) = default;
+ ImplHelper11 & operator =(ImplHelper11 &&) = 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