summaryrefslogtreecommitdiffstats
path: root/include/cppuhelper/implbase7.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/implbase7.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/implbase7.hxx')
-rw-r--r--include/cppuhelper/implbase7.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cppuhelper/implbase7.hxx b/include/cppuhelper/implbase7.hxx
index 9c6c041d7b69..157e1c945418 100644
--- a/include/cppuhelper/implbase7.hxx
+++ b/include/cppuhelper/implbase7.hxx
@@ -76,6 +76,14 @@ namespace cppu
{
struct cd : public rtl::StaticAggregate< class_data, ImplClassData7< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, ImplHelper7<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7> > > {};
public:
+#if defined LIBO_INTERNAL_ONLY
+ ImplHelper7() = default;
+ ImplHelper7(ImplHelper7 const &) = default;
+ ImplHelper7(ImplHelper7 &&) = default;
+ ImplHelper7 & operator =(ImplHelper7 const &) = default;
+ ImplHelper7 & operator =(ImplHelper7 &&) = 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