Kaydet (Commit) d4d7b64c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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: 's avatarStephan Bergmann <sbergman@redhat.com>
üst e6ab9174
......@@ -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; }
};
......
......@@ -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; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment