summaryrefslogtreecommitdiff
path: root/sw/inc/bparr.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-12-12 11:33:13 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-12-12 14:02:42 +0100
commit3bf7a861b37a93e196b2e53eeaa5a561d26ed240 (patch)
tree61097c1de3015834b949f6717ce1e273d09a96b3 /sw/inc/bparr.hxx
parent065c8fa896b92a393d87cfdfd650106402e865c1 (diff)
Silence some Clang 10 trunk -Wdeprecated-copy-dtor
...by making the user-declared dtor not user-provided. Non-deleted copy functions are still deprecated with any user-declared dtor, not just a user- provided one, but Clang and GCC happen to not emit a warning then (see the discussion at <https://reviews.llvm.org/rG9e260c12bce7> "[Diagnostics] Make behaviour of Clang's -Wdeprecated-copy same as in GCC"), so keep the code simple. Change-Id: Ic3936d12b3335d3aa55e1e8e92cc5152053a1720 Reviewed-on: https://gerrit.libreoffice.org/85042 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/inc/bparr.hxx')
-rw-r--r--sw/inc/bparr.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/bparr.hxx b/sw/inc/bparr.hxx
index 2c990259d11a..0730a5c5a61b 100644
--- a/sw/inc/bparr.hxx
+++ b/sw/inc/bparr.hxx
@@ -37,7 +37,7 @@ class BigPtrEntry
sal_uInt16 m_nOffset;
public:
BigPtrEntry() : m_pBlock(nullptr), m_nOffset(0) {}
- virtual ~BigPtrEntry() {}
+ virtual ~BigPtrEntry() = default;
inline sal_uLong GetPos() const;
inline BigPtrArray& GetArray() const;