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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jul 26 14:28:32 UTC 2018


 basctl/source/inc/bastype2.hxx |    5 +++++
 basctl/source/inc/dlgedobj.hxx |    5 +++++
 2 files changed, 10 insertions(+)

New commits:
commit d4d7b64cf02439b08eadf33ef7d5074c40d0de8d
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jul 26 11:55:25 2018 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Jul 26 16:28:01 2018 +0200

    basctl: 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: Ib343070f809c364290d1747372508437692df5cd
    Reviewed-on: https://gerrit.libreoffice.org/58064
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/basctl/source/inc/bastype2.hxx b/basctl/source/inc/bastype2.hxx
index 0cdd6826cb5a..e4f82a9d06a5 100644
--- a/basctl/source/inc/bastype2.hxx
+++ b/basctl/source/inc/bastype2.hxx
@@ -77,6 +77,11 @@ public:
 
     virtual ~Entry();
 
+    Entry(Entry const &) = default;
+    Entry(Entry &&) = default;
+    Entry & operator =(Entry const &) = default;
+    Entry & operator =(Entry &&) = default;
+
     EntryType GetType () const { return m_eType; }
 };
 
diff --git a/basctl/source/inc/dlgedobj.hxx b/basctl/source/inc/dlgedobj.hxx
index 0e6898636806..e845ba288ac2 100644
--- a/basctl/source/inc/dlgedobj.hxx
+++ b/basctl/source/inc/dlgedobj.hxx
@@ -90,6 +90,11 @@ protected:
         sal_Int32& nXOut, sal_Int32& nYOut, sal_Int32& nWidthOut, sal_Int32& nHeightOut );
 
 public:
+    DlgEdObj(DlgEdObj const &) = default;
+    DlgEdObj(DlgEdObj &&) = default;
+    DlgEdObj & operator =(DlgEdObj const &) = default;
+    DlgEdObj & operator =(DlgEdObj &&) = default;
+
     void SetDlgEdForm( DlgEdForm* pForm ) { pDlgEdForm = pForm; }
     DlgEdForm* GetDlgEdForm() const { return pDlgEdForm; }
 


More information about the Libreoffice-commits mailing list