summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-04-26 16:28:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-04-27 08:01:27 +0200
commitf5a95eb32f32c44359d6e9c26dd97cecb0b207a9 (patch)
tree709dd7a053c213f6b076eca9a2a04309b1eaa036 /sw
parentd08c7fecd6b38442ea7a4ac79315603cc7084208 (diff)
More aggressive Clang 13 trunk -Werror,-Wdeprecated-copy[-with-dtor]
...since <https://github.com/llvm/llvm-project/commit/abf3ca61e3235681f26d0f527b8e2763dd4c0c62> "[Diagnostics] Restore -Wdeprecated warning when user-declared copy assignment operator is defined as deleted (PR45634)" Change-Id: I43ae8a620915ad211a1f21ecf89b6955b7d2faaf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114674 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/bparr.hxx2
-rw-r--r--sw/source/filter/inc/msfilter.hxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/sw/inc/bparr.hxx b/sw/inc/bparr.hxx
index 0730a5c5a61b..d28e964685d7 100644
--- a/sw/inc/bparr.hxx
+++ b/sw/inc/bparr.hxx
@@ -37,7 +37,9 @@ class BigPtrEntry
sal_uInt16 m_nOffset;
public:
BigPtrEntry() : m_pBlock(nullptr), m_nOffset(0) {}
+ BigPtrEntry(BigPtrEntry const &) = default;
virtual ~BigPtrEntry() = default;
+ BigPtrEntry & operator =(BigPtrEntry const &) = default;
inline sal_uLong GetPos() const;
inline BigPtrArray& GetArray() const;
diff --git a/sw/source/filter/inc/msfilter.hxx b/sw/source/filter/inc/msfilter.hxx
index c0ebc8ea6be7..59ede5ac2a64 100644
--- a/sw/source/filter/inc/msfilter.hxx
+++ b/sw/source/filter/inc/msfilter.hxx
@@ -315,6 +315,7 @@ namespace sw
SwDoc &mrDoc;
public:
explicit SetInDocAndDelete(SwDoc &rDoc) : mrDoc(rDoc) {}
+ SetInDocAndDelete(SetInDocAndDelete const &) = default;
void operator()(std::unique_ptr<SwFltStackEntry> & pEntry);
private:
SetInDocAndDelete& operator=(const SetInDocAndDelete&) = delete;
@@ -331,6 +332,7 @@ namespace sw
if (pEntry->bOpen)
pEntry->SetEndPos(mrPos);
}
+ SetEndIfOpen(SetEndIfOpen const &) = default;
private:
SetEndIfOpen& operator=(const SetEndIfOpen&) = delete;
};