summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-09-04 11:38:40 +0200
committerEike Rathke <erack@redhat.com>2014-09-04 11:41:48 +0200
commit742060f74ad8249e8412af5e6562d958a1d8d4cd (patch)
treed45353fd469eb9353b4307558257fc12667c904b /sc
parent0d0137f4aebb350f93b21296a59c19829624221a (diff)
eliminate superfluous temporary string
Change-Id: Ie58701754c7be68ba5a9109153312ed152ea293f
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/address.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx
index ef3baadafcb6..6a379526043c 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"