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 /writerfilter | |
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 'writerfilter')
-rw-r--r-- | writerfilter/source/ooxml/OOXMLPropertySet.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/writerfilter/source/ooxml/OOXMLPropertySet.hxx b/writerfilter/source/ooxml/OOXMLPropertySet.hxx index ecaeadb21014..3628ab6696c6 100644 --- a/writerfilter/source/ooxml/OOXMLPropertySet.hxx +++ b/writerfilter/source/ooxml/OOXMLPropertySet.hxx @@ -103,8 +103,8 @@ public: OOXMLBooleanValue(OOXMLBooleanValue const &) = default; OOXMLBooleanValue(OOXMLBooleanValue &&) = default; - OOXMLBooleanValue & operator =(OOXMLBooleanValue const &) = default; - OOXMLBooleanValue & operator =(OOXMLBooleanValue &&) = default; + OOXMLBooleanValue & operator =(OOXMLBooleanValue const &) = delete; // due to const mbValue + OOXMLBooleanValue & operator =(OOXMLBooleanValue &&) = delete; // due to const mbValue virtual int getInt() const override; virtual css::uno::Any getAny() const override; @@ -123,8 +123,8 @@ public: OOXMLStringValue(OOXMLStringValue const &) = default; OOXMLStringValue(OOXMLStringValue &&) = default; - OOXMLStringValue & operator =(OOXMLStringValue const &) = default; - OOXMLStringValue & operator =(OOXMLStringValue &&) = default; + OOXMLStringValue & operator =(OOXMLStringValue const &) = delete; // due to const mStr + OOXMLStringValue & operator =(OOXMLStringValue &&) = delete; // due to const mStr virtual css::uno::Any getAny() const override; virtual OUString getString() const override; @@ -212,8 +212,8 @@ public: OOXMLPropertySetValue(OOXMLPropertySetValue const &) = default; OOXMLPropertySetValue(OOXMLPropertySetValue &&) = default; - OOXMLPropertySetValue & operator =(OOXMLPropertySetValue const &) = default; - OOXMLPropertySetValue & operator =(OOXMLPropertySetValue &&) = default; + OOXMLPropertySetValue & operator =(OOXMLPropertySetValue const &) = delete; // due to const mpPropertySet + OOXMLPropertySetValue & operator =(OOXMLPropertySetValue &&) = delete; // due to const mpPropertySet virtual writerfilter::Reference<Properties>::Pointer_t getProperties() override; #ifdef DEBUG_WRITERFILTER @@ -232,8 +232,8 @@ public: OOXMLIntegerValue(OOXMLIntegerValue const &) = default; OOXMLIntegerValue(OOXMLIntegerValue &&) = default; - OOXMLIntegerValue & operator =(OOXMLIntegerValue const &) = default; - OOXMLIntegerValue & operator =(OOXMLIntegerValue &&) = default; + OOXMLIntegerValue & operator =(OOXMLIntegerValue const &) = delete; // due to const mnValue + OOXMLIntegerValue & operator =(OOXMLIntegerValue &&) = delete; // due to const mnValue virtual int getInt() const override; virtual css::uno::Any getAny() const override; |