summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-07-26 11:55:25 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-07-26 16:28:01 +0200
commitd4d7b64cf02439b08eadf33ef7d5074c40d0de8d (patch)
tree7b917412a8de3a744af03513afb4cefdaebbdb0f /basctl
parente6ab9174b02aa6240ed9c4392a0e1b0c261d3481 (diff)
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@redhat.com>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/inc/bastype2.hxx5
-rw-r--r--basctl/source/inc/dlgedobj.hxx5
2 files changed, 10 insertions, 0 deletions
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; }