diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-10-02 17:28:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-10-02 21:54:00 +0200 |
commit | 3db830d354de80b319fb818a0373365a1e647264 (patch) | |
tree | 7b8abc09ad3d5f44c05b440c12ff4238c7e86f15 /sc/inc/attrib.hxx | |
parent | 22c3b4077f5f113f8208bb03b853eb3befafff51 (diff) |
Silence new Clang trunk -Wdefaulted-function-deleted
This mostly affects explicitly defaulted functions that had recently been user-
declared to silence new GCC trunk -Wdeprecated-copy. It is not entirely clear
to me what the best approach is overall, see my mail
<http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20181001/245321.html>
"Re: r343285 - [cxx2a] P0641R2: (Some) type mismatches on defaulted functions
only", but lets just explicitly delete those functions for now.
Change-Id: If8c72f612f67a8feb8b03c2fb988c807e704ef03
Reviewed-on: https://gerrit.libreoffice.org/61259
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc/inc/attrib.hxx')
-rw-r--r-- | sc/inc/attrib.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/inc/attrib.hxx b/sc/inc/attrib.hxx index b881a54a96d5..08363b2ac681 100644 --- a/sc/inc/attrib.hxx +++ b/sc/inc/attrib.hxx @@ -89,8 +89,8 @@ public: ScMergeFlagAttr(ScMergeFlagAttr const &) = default; ScMergeFlagAttr(ScMergeFlagAttr &&) = default; - ScMergeFlagAttr & operator =(ScMergeFlagAttr const &) = default; - ScMergeFlagAttr & operator =(ScMergeFlagAttr &&) = default; + ScMergeFlagAttr & operator =(ScMergeFlagAttr const &) = delete; // due to SfxInt16Item + ScMergeFlagAttr & operator =(ScMergeFlagAttr &&) = delete; // due to SfxInt16Item SfxPoolItem * Clone(SfxItemPool * pPool = nullptr) const override; @@ -201,8 +201,8 @@ public: ScViewObjectModeItem(ScViewObjectModeItem const &) = default; ScViewObjectModeItem(ScViewObjectModeItem &&) = default; - ScViewObjectModeItem & operator =(ScViewObjectModeItem const &) = default; - ScViewObjectModeItem & operator =(ScViewObjectModeItem &&) = default; + ScViewObjectModeItem & operator =(ScViewObjectModeItem const &) = delete; // due to SfxEnumItem<ScVObjMode> + ScViewObjectModeItem & operator =(ScViewObjectModeItem &&) = delete; // due to SfxEnumItem<ScVObjMode> virtual sal_uInt16 GetValueCount() const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; @@ -246,8 +246,8 @@ public: ScPageScaleToItem(ScPageScaleToItem const &) = default; ScPageScaleToItem(ScPageScaleToItem &&) = default; - ScPageScaleToItem & operator =(ScPageScaleToItem const &) = default; - ScPageScaleToItem & operator =(ScPageScaleToItem &&) = default; + ScPageScaleToItem & operator =(ScPageScaleToItem const &) = delete; // due to SfxPoolItem + ScPageScaleToItem & operator =(ScPageScaleToItem &&) = delete; // due to SfxPoolItem virtual ScPageScaleToItem* Clone( SfxItemPool* = nullptr ) const override; |