summaryrefslogtreecommitdiffstats
path: root/include/editeng/opaqitem.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-07-27 10:26:52 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-07-28 00:12:53 +0200
commitdea2c65032eafb0398ffd10bcd3485499be17eb4 (patch)
tree2a178e8bed60fb8f73fc7180b13609366b0bcab3 /include/editeng/opaqitem.hxx
parent-Werror=deprecated-copy (GCC trunk towards GCC 9) (diff)
downloadcore-dea2c65032eafb0398ffd10bcd3485499be17eb4.tar.gz
core-dea2c65032eafb0398ffd10bcd3485499be17eb4.zip
-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/editeng/opaqitem.hxx')
-rw-r--r--include/editeng/opaqitem.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/editeng/opaqitem.hxx b/include/editeng/opaqitem.hxx
index 3b94b5a55e86..12e3caf2c44b 100644
--- a/include/editeng/opaqitem.hxx
+++ b/include/editeng/opaqitem.hxx
@@ -37,6 +37,7 @@ class EDITENG_DLLPUBLIC SvxOpaqueItem : public SfxBoolItem
public:
explicit SvxOpaqueItem( const sal_uInt16 nId , const bool bOpa = true );
inline SvxOpaqueItem &operator=( const SvxOpaqueItem &rCpy );
+ SvxOpaqueItem(SvxOpaqueItem const &) = default; // SfxPoolItem copy function dichotomy
// "pure virtual Methods" from SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;