[Libreoffice-commits] core.git: sc/inc sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Aug 17 13:37:48 UTC 2018


 sc/inc/table.hxx                 |    2 +-
 sc/source/core/data/document.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 519dfa1f3dba16e528becdd573f801f4c84b259c
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Aug 17 10:30:02 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Aug 17 15:37:22 2018 +0200

    make GetCodeName accessor more standard
    
    Change-Id: Ieee004ef7f6c7db5503a8a0d1660785105ec0511
    Reviewed-on: https://gerrit.libreoffice.org/59251
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index fe9f8615fb46..54d11db8599c 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -366,7 +366,7 @@ public:
     void        SetAnonymousDBData(std::unique_ptr<ScDBData> pDBData);
     ScDBData*   GetAnonymousDBData() { return pDBDataNoName.get();}
 
-    void        GetCodeName( OUString& rName ) const {  rName = aCodeName; }
+    const OUString& GetCodeName() const { return aCodeName; }
     void        SetCodeName( const OUString& rNewName ) { aCodeName = rNewName; }
 
     const OUString& GetUpperName() const;
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 764492313380..6f68e4669338 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -250,7 +250,7 @@ bool ScDocument::GetCodeName( SCTAB nTab, OUString& rName ) const
     if (ValidTab(nTab) && nTab < static_cast<SCTAB>(maTabs.size()))
         if (maTabs[nTab])
         {
-            maTabs[nTab]->GetCodeName( rName );
+            rName = maTabs[nTab]->GetCodeName();
             return true;
         }
     rName.clear();


More information about the Libreoffice-commits mailing list