[Libreoffice-commits] core.git: sd/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jul 26 18:44:53 UTC 2018


 sd/source/ui/inc/optsitem.hxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit fc053e04278aa4b466a1dec8b01c2e692a548a7a
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jul 26 12:22:16 2018 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Jul 26 20:44:22 2018 +0200

    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 at redhat.com>

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 );


More information about the Libreoffice-commits mailing list