diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-07-27 10:26:52 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-07-28 00:12:53 +0200 |
commit | dea2c65032eafb0398ffd10bcd3485499be17eb4 (patch) | |
tree | 2a178e8bed60fb8f73fc7180b13609366b0bcab3 /include/svx | |
parent | 3280281b8f766490688a6e27130418981ee31b05 (diff) |
-Werror=deprecated-copy (GCC trunk towards GCC 9)
...in SfxPoolItem-derived classes that have a user-provided copy assignment op
(to override the explicitly deleted one of SfxPoolItem, cf.
727878a7d8ae25342db75173cc314fa330ccc077 "Remove unused copy assignment ops of
SfxPoolItem-derived classes"), so GCC 9 would warn about the implicitly-defined
copy ctor. Mark all those with "SfxPoolItem copy function dichotomy" comments
so they can be found again should the odd design of SfxPoolItem ever be changed.
Change-Id: If206716747c42205ae4822a3f54c9de037c75286
Reviewed-on: https://gerrit.libreoffice.org/58172
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/algitem.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/svx/algitem.hxx b/include/svx/algitem.hxx index 797b3be24c86..b1cc5f70ec77 100644 --- a/include/svx/algitem.hxx +++ b/include/svx/algitem.hxx @@ -60,6 +60,7 @@ public: SetValue( rOrientation.GetValue() ); return *this; } + SvxOrientationItem(SvxOrientationItem const &) = default; // SfxPoolItem copy function dichotomy /** Returns sal_True, if the item represents STACKED state. */ bool IsStacked() const; @@ -110,6 +111,7 @@ public: nBottomMargin = rMargin.nBottomMargin; return *this; } + SvxMarginItem(SvxMarginItem const &) = default; // SfxPoolItem copy function dichotomy }; #endif |