Kaydet (Commit) 742060f7 authored tarafından Eike Rathke's avatar Eike Rathke

eliminate superfluous temporary string

Change-Id: Ie58701754c7be68ba5a9109153312ed152ea293f
üst 0d0137f4
...@@ -1744,9 +1744,7 @@ OUString ScAddress::Format(sal_uInt16 nFlags, const ScDocument* pDoc, ...@@ -1744,9 +1744,7 @@ OUString ScAddress::Format(sal_uInt16 nFlags, const ScDocument* pDoc,
if( nFlags & SCA_TAB_3D ) if( nFlags & SCA_TAB_3D )
{ {
OUString aTabName, aDocName; OUString aTabName, aDocName;
OUString aTmp; pDoc->GetName(nTab, aTabName);
pDoc->GetName(nTab, aTmp);
aTabName = aTmp; // TODO: remove use of String here.
// External Reference, same as in ScCompiler::MakeTabStr() // External Reference, same as in ScCompiler::MakeTabStr()
if( aTabName[0] == '\'' ) if( aTabName[0] == '\'' )
{ // "'Doc'#Tab" { // "'Doc'#Tab"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment