[Libreoffice-commits] core.git: sw/inc

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Thu Dec 12 13:03:59 UTC 2019


 sw/inc/bparr.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3bf7a861b37a93e196b2e53eeaa5a561d26ed240
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Dec 12 11:33:13 2019 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Dec 12 14:02:42 2019 +0100

    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 at redhat.com>

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;


More information about the Libreoffice-commits mailing list