summaryrefslogtreecommitdiff
path: root/sc/inc/viewopti.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-10-02 17:28:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-10-02 21:54:00 +0200
commit3db830d354de80b319fb818a0373365a1e647264 (patch)
tree7b8abc09ad3d5f44c05b440c12ff4238c7e86f15 /sc/inc/viewopti.hxx
parent22c3b4077f5f113f8208bb03b853eb3befafff51 (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/viewopti.hxx')
-rw-r--r--sc/inc/viewopti.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/viewopti.hxx b/sc/inc/viewopti.hxx
index b7870ddb646a..463de1c698fe 100644
--- a/sc/inc/viewopti.hxx
+++ b/sc/inc/viewopti.hxx
@@ -118,8 +118,8 @@ public:
ScTpViewItem(ScTpViewItem const &) = default;
ScTpViewItem(ScTpViewItem &&) = default;
- ScTpViewItem & operator =(ScTpViewItem const &) = default;
- ScTpViewItem & operator =(ScTpViewItem &&) = default;
+ ScTpViewItem & operator =(ScTpViewItem const &) = delete; // due to SfxPoolItem
+ ScTpViewItem & operator =(ScTpViewItem &&) = delete; // due to SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;