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 /include/editeng | |
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 'include/editeng')
-rw-r--r-- | include/editeng/spltitem.hxx | 4 | ||||
-rw-r--r-- | include/editeng/twolinesitem.hxx | 4 | ||||
-rw-r--r-- | include/editeng/writingmodeitem.hxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/include/editeng/spltitem.hxx b/include/editeng/spltitem.hxx index 081d8b8ee87a..8e05e3c5f573 100644 --- a/include/editeng/spltitem.hxx +++ b/include/editeng/spltitem.hxx @@ -42,8 +42,8 @@ public: SvxFormatSplitItem(SvxFormatSplitItem const &) = default; SvxFormatSplitItem(SvxFormatSplitItem &&) = default; - SvxFormatSplitItem & operator =(SvxFormatSplitItem const &) = default; - SvxFormatSplitItem & operator =(SvxFormatSplitItem &&) = default; + SvxFormatSplitItem & operator =(SvxFormatSplitItem const &) = delete; // due to SfxBoolItem + SvxFormatSplitItem & operator =(SvxFormatSplitItem &&) = delete; // due to SfxBoolItem // "pure virtual Methods" from SfxPoolItem virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; diff --git a/include/editeng/twolinesitem.hxx b/include/editeng/twolinesitem.hxx index 91b2470f3020..848c23c3a081 100644 --- a/include/editeng/twolinesitem.hxx +++ b/include/editeng/twolinesitem.hxx @@ -38,8 +38,8 @@ public: SvxTwoLinesItem(SvxTwoLinesItem const &) = default; SvxTwoLinesItem(SvxTwoLinesItem &&) = default; - SvxTwoLinesItem & operator =(SvxTwoLinesItem const &) = default; - SvxTwoLinesItem & operator =(SvxTwoLinesItem &&) = default; + SvxTwoLinesItem & operator =(SvxTwoLinesItem const &) = delete; // due to SfxPoolItem + SvxTwoLinesItem & operator =(SvxTwoLinesItem &&) = delete; // due to SfxPoolItem // "pure virtual Methods" from SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; diff --git a/include/editeng/writingmodeitem.hxx b/include/editeng/writingmodeitem.hxx index 737de29f3269..6c10ef62f0f5 100644 --- a/include/editeng/writingmodeitem.hxx +++ b/include/editeng/writingmodeitem.hxx @@ -34,8 +34,8 @@ public: SvxWritingModeItem(SvxWritingModeItem const &) = default; SvxWritingModeItem(SvxWritingModeItem &&) = default; - SvxWritingModeItem & operator =(SvxWritingModeItem const &) = default; - SvxWritingModeItem & operator =(SvxWritingModeItem &&) = default; + SvxWritingModeItem & operator =(SvxWritingModeItem const &) = delete; // due to SfxUInt16Item + SvxWritingModeItem & operator =(SvxWritingModeItem &&) = delete; // due to SfxUInt16Item virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const override; |