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/svl | |
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/svl')
-rw-r--r-- | include/svl/globalnameitem.hxx | 4 | ||||
-rw-r--r-- | include/svl/grabbagitem.hxx | 4 | ||||
-rw-r--r-- | include/svl/ilstitem.hxx | 4 | ||||
-rw-r--r-- | include/svl/int64item.hxx | 4 | ||||
-rw-r--r-- | include/svl/lckbitem.hxx | 4 | ||||
-rw-r--r-- | include/svl/poolitem.hxx | 4 | ||||
-rw-r--r-- | include/svl/slstitm.hxx | 4 |
7 files changed, 14 insertions, 14 deletions
diff --git a/include/svl/globalnameitem.hxx b/include/svl/globalnameitem.hxx index 3ce25307ecb4..929780d94d63 100644 --- a/include/svl/globalnameitem.hxx +++ b/include/svl/globalnameitem.hxx @@ -36,8 +36,8 @@ public: SfxGlobalNameItem(SfxGlobalNameItem const &) = default; SfxGlobalNameItem(SfxGlobalNameItem &&) = default; - SfxGlobalNameItem & operator =(SfxGlobalNameItem const &) = default; - SfxGlobalNameItem & operator =(SfxGlobalNameItem &&) = default; + SfxGlobalNameItem & operator =(SfxGlobalNameItem const &) = delete; // due to SfxPoolItem + SfxGlobalNameItem & operator =(SfxGlobalNameItem &&) = delete; // due to SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; diff --git a/include/svl/grabbagitem.hxx b/include/svl/grabbagitem.hxx index 4fcd9159a8e6..1662259b97d0 100644 --- a/include/svl/grabbagitem.hxx +++ b/include/svl/grabbagitem.hxx @@ -28,8 +28,8 @@ public: SfxGrabBagItem(SfxGrabBagItem const&) = default; SfxGrabBagItem(SfxGrabBagItem&&) = default; - SfxGrabBagItem& operator=(SfxGrabBagItem const&) = default; - SfxGrabBagItem& operator=(SfxGrabBagItem&&) = default; + SfxGrabBagItem& operator=(SfxGrabBagItem const&) = delete; // due to SfxPoolItem + SfxGrabBagItem& operator=(SfxGrabBagItem&&) = delete; // due to SfxPoolItem const std::map<OUString, css::uno::Any>& GetGrabBag() const { return m_aMap; } diff --git a/include/svl/ilstitem.hxx b/include/svl/ilstitem.hxx index 198af2747fd0..ecc99fd83e01 100644 --- a/include/svl/ilstitem.hxx +++ b/include/svl/ilstitem.hxx @@ -38,8 +38,8 @@ public: SfxIntegerListItem(SfxIntegerListItem const &) = default; SfxIntegerListItem(SfxIntegerListItem &&) = default; - SfxIntegerListItem & operator =(SfxIntegerListItem const &) = default; - SfxIntegerListItem & operator =(SfxIntegerListItem &&) = default; + SfxIntegerListItem & operator =(SfxIntegerListItem const &) = delete; // due to SfxPoolItem + SfxIntegerListItem & operator =(SfxIntegerListItem &&) = delete; // due to SfxPoolItem const std::vector< sal_Int32 >& GetList() const { return m_aList; } diff --git a/include/svl/int64item.hxx b/include/svl/int64item.hxx index 583f435dde94..410beb21746b 100644 --- a/include/svl/int64item.hxx +++ b/include/svl/int64item.hxx @@ -25,8 +25,8 @@ public: SfxInt64Item(SfxInt64Item const &) = default; SfxInt64Item(SfxInt64Item &&) = default; - SfxInt64Item & operator =(SfxInt64Item const &) = default; - SfxInt64Item & operator =(SfxInt64Item &&) = default; + SfxInt64Item & operator =(SfxInt64Item const &) = delete; // due to SfxPoolItem; + SfxInt64Item & operator =(SfxInt64Item &&) = delete; // due to SfxPoolItem virtual bool operator== ( const SfxPoolItem& rItem ) const override; diff --git a/include/svl/lckbitem.hxx b/include/svl/lckbitem.hxx index 54b52a42aff6..d6bf1a21e27c 100644 --- a/include/svl/lckbitem.hxx +++ b/include/svl/lckbitem.hxx @@ -35,8 +35,8 @@ public: SfxLockBytesItem(SfxLockBytesItem const &) = default; SfxLockBytesItem(SfxLockBytesItem &&) = default; - SfxLockBytesItem & operator =(SfxLockBytesItem const &) = default; - SfxLockBytesItem & operator =(SfxLockBytesItem &&) = default; + SfxLockBytesItem & operator =(SfxLockBytesItem const &) = delete; // due to SfxPoolItem + SfxLockBytesItem & operator =(SfxLockBytesItem &&) = delete; // due to SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; diff --git a/include/svl/poolitem.hxx b/include/svl/poolitem.hxx index a7f90980ca34..25a5a83a2d05 100644 --- a/include/svl/poolitem.hxx +++ b/include/svl/poolitem.hxx @@ -255,8 +255,8 @@ public: SfxVoidItem(SfxVoidItem const &) = default; SfxVoidItem(SfxVoidItem &&) = default; - SfxVoidItem & operator =(SfxVoidItem const &) = default; - SfxVoidItem & operator =(SfxVoidItem &&) = default; + SfxVoidItem & operator =(SfxVoidItem const &) = delete; // due to SfxPoolItem + SfxVoidItem & operator =(SfxVoidItem &&) = delete; // due to SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; diff --git a/include/svl/slstitm.hxx b/include/svl/slstitm.hxx index b6ce5d79417d..4f9a82986a35 100644 --- a/include/svl/slstitm.hxx +++ b/include/svl/slstitm.hxx @@ -40,8 +40,8 @@ public: SfxStringListItem(SfxStringListItem const &) = default; SfxStringListItem(SfxStringListItem &&) = default; - SfxStringListItem & operator =(SfxStringListItem const &) = default; - SfxStringListItem & operator =(SfxStringListItem &&) = default; + SfxStringListItem & operator =(SfxStringListItem const &) = delete; // due to SfxPoolItem + SfxStringListItem & operator =(SfxStringListItem &&) = delete; // due to SfxPoolItem std::vector<OUString>& GetList(); |