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

Eike Rathke erack at redhat.com
Thu Sep 4 02:42:20 PDT 2014


 sc/source/core/tool/address.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 742060f74ad8249e8412af5e6562d958a1d8d4cd
Author: Eike Rathke <erack at redhat.com>
Date:   Thu Sep 4 11:38:40 2014 +0200

    eliminate superfluous temporary string
    
    Change-Id: Ie58701754c7be68ba5a9109153312ed152ea293f

diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx
index ef3baad..6a37952 100644
--- a/sc/source/core/tool/address.cxx
+++ b/sc/source/core/tool/address.cxx
@@ -1744,9 +1744,7 @@ OUString ScAddress::Format(sal_uInt16 nFlags, const ScDocument* pDoc,
         if( nFlags & SCA_TAB_3D )
         {
             OUString aTabName, aDocName;
-            OUString aTmp;
-            pDoc->GetName(nTab, aTmp);
-            aTabName = aTmp; // TODO: remove use of String here.
+            pDoc->GetName(nTab, aTabName);
             // External Reference, same as in ScCompiler::MakeTabStr()
             if( aTabName[0] == '\'' )
             {   // "'Doc'#Tab"


More information about the Libreoffice-commits mailing list