From dea2c65032eafb0398ffd10bcd3485499be17eb4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 27 Jul 2018 10:26:52 +0200 Subject: -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 --- include/editeng/protitem.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'include/editeng/protitem.hxx') diff --git a/include/editeng/protitem.hxx b/include/editeng/protitem.hxx index 77d5cb9f4d9f..1de4c9fd5dfc 100644 --- a/include/editeng/protitem.hxx +++ b/include/editeng/protitem.hxx @@ -43,6 +43,7 @@ public: explicit inline SvxProtectItem( const sal_uInt16 nId ); inline SvxProtectItem &operator=( const SvxProtectItem &rCpy ); + SvxProtectItem(SvxProtectItem const &) = default; // SfxPoolItem copy function dichotomy // "pure virtual Methods" from SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; -- cgit