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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Jan 21 09:45:36 UTC 2019


 sw/source/core/fields/authfld.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit e8449b6a45a69d3de62804b226fdbed873eedc18
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Jan 21 11:23:21 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Jan 21 11:43:18 2019 +0200

    fix -Werror=extra
    
    error: base class ‘class salhelper::SimpleReferenceObject’ should be
    explicitly initialized in the copy constructor
    
    after
        commit 3b16e997f69efe2e3f6cdf64fe8fb2727b6ebaa7
        Date:   Fri Jan 18 15:38:07 2019 +0200
        cleanup SwAuthEntry manual ref-counting
    
    Change-Id: I291a8a4f6c2a6ec38506265f6a0382f89774ecd4

diff --git a/sw/source/core/fields/authfld.cxx b/sw/source/core/fields/authfld.cxx
index 705ca88136a6..20d53944f65a 100644
--- a/sw/source/core/fields/authfld.cxx
+++ b/sw/source/core/fields/authfld.cxx
@@ -51,6 +51,7 @@ using namespace ::com::sun::star::beans;
 using namespace ::com::sun::star::lang;
 
 SwAuthEntry::SwAuthEntry(const SwAuthEntry& rCopy)
+    : SimpleReferenceObject()
 {
     for(int i = 0; i < AUTH_FIELD_END; ++i)
         aAuthFields[i] = rCopy.aAuthFields[i];


More information about the Libreoffice-commits mailing list