summaryrefslogtreecommitdiffstats
path: root/include/svx/sxmtritm.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-07-26 16:21:18 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-07-27 08:29:15 +0200
commit13502c0f201f37960ec06bf1e7e2e8b4d838090a (patch)
tree036751c32e5aaaf29954cb54fbfa406b841316fd /include/svx/sxmtritm.hxx
parentcppcanvas: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9) (diff)
downloadcore-13502c0f201f37960ec06bf1e7e2e8b4d838090a.tar.gz
core-13502c0f201f37960ec06bf1e7e2e8b4d838090a.zip
svx: 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.; and by removing explicitly user- provided functions that do the same as their implicitly-defined counterparts, but may prevent implicitly declared copy functions from being defined as non- deleted in the future. (Even if such a user-provided function was declared non-inline in an include file, the apparently-used implicitly-defined copy functions are already include, so why bother with non-inline functions.) Change-Id: I1c470ef87e95b22e406099a4e6816693edab2e03 Reviewed-on: https://gerrit.libreoffice.org/58131 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/svx/sxmtritm.hxx')
-rw-r--r--include/svx/sxmtritm.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/svx/sxmtritm.hxx b/include/svx/sxmtritm.hxx
index 690f2ea4cea7..78da1e7a1185 100644
--- a/include/svx/sxmtritm.hxx
+++ b/include/svx/sxmtritm.hxx
@@ -28,6 +28,11 @@ public:
SdrMeasureTextRota90Item(bool bOn=false): SdrYesNoItem(SDRATTR_MEASURETEXTROTA90,bOn) {}
virtual ~SdrMeasureTextRota90Item() override;
virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override;
+
+ SdrMeasureTextRota90Item(SdrMeasureTextRota90Item const &) = default;
+ SdrMeasureTextRota90Item(SdrMeasureTextRota90Item &&) = default;
+ SdrMeasureTextRota90Item & operator =(SdrMeasureTextRota90Item const &) = default;
+ SdrMeasureTextRota90Item & operator =(SdrMeasureTextRota90Item &&) = default;
};
// Turn the calculated TextRect through 180 deg
@@ -37,6 +42,11 @@ public:
SdrMeasureTextUpsideDownItem(bool bOn=false): SdrYesNoItem(SDRATTR_MEASURETEXTUPSIDEDOWN,bOn) {}
virtual ~SdrMeasureTextUpsideDownItem() override;
virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override;
+
+ SdrMeasureTextUpsideDownItem(SdrMeasureTextUpsideDownItem const &) = default;
+ SdrMeasureTextUpsideDownItem(SdrMeasureTextUpsideDownItem &&) = default;
+ SdrMeasureTextUpsideDownItem & operator =(SdrMeasureTextUpsideDownItem const &) = default;
+ SdrMeasureTextUpsideDownItem & operator =(SdrMeasureTextUpsideDownItem &&) = default;
};
#endif