diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-07-26 12:22:16 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-07-26 20:44:22 +0200 |
commit | fc053e04278aa4b466a1dec8b01c2e692a548a7a (patch) | |
tree | 18219f5710e5e54bd00806520c70585278b96cb7 /sd | |
parent | 2fb6ac75eb63368b1a0b52d82ae9adab9e012ab3 (diff) |
sd: 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: Ib791cc511acfce457f7ffb2cd2c1a834e4e28734
Reviewed-on: https://gerrit.libreoffice.org/58078
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/inc/optsitem.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sd/source/ui/inc/optsitem.hxx b/sd/source/ui/inc/optsitem.hxx index 8d925a316bf5..18e836a71e16 100644 --- a/sd/source/ui/inc/optsitem.hxx +++ b/sd/source/ui/inc/optsitem.hxx @@ -51,6 +51,11 @@ public: SdOptionsItem( const SdOptionsGeneric& rParent, const OUString& rSubTree ); virtual ~SdOptionsItem() override; + SdOptionsItem(SdOptionsItem const &) = default; + SdOptionsItem(SdOptionsItem &&) = default; + SdOptionsItem & operator =(SdOptionsItem const &) = default; + SdOptionsItem & operator =(SdOptionsItem &&) = default; + virtual void Notify( const css::uno::Sequence<OUString>& aPropertyNames) override; css::uno::Sequence< css::uno::Any > GetProperties( const css::uno::Sequence< OUString >& rNames ); |