summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-02-24 09:05:50 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-02-24 09:08:35 +0100
commit83aa6d8180f289e5ae4034560dbd95ab160b1ac2 (patch)
tree10fea22a5780ba93c594456130b4db1a93626592 /basic
parentc1e06b7a91e0a2f2ddcf9d669bccb0eb488dc4f8 (diff)
Remove some temporaries around calls to SvNumberFormatter methods
Change-Id: Ib03c97a52df120bac1ac9b2b9d2e52431ead1027
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxdate.cxx4
-rw-r--r--basic/source/sbx/sbxscan.cxx3
2 files changed, 2 insertions, 5 deletions
diff --git a/basic/source/sbx/sbxdate.cxx b/basic/source/sbx/sbxdate.cxx
index 65d4940c7058..0ed08e79ef0a 100644
--- a/basic/source/sbx/sbxdate.cxx
+++ b/basic/source/sbx/sbxdate.cxx
@@ -313,9 +313,7 @@ start:
nIndex,
LANGUAGE_GERMAN,
eLangType );
- OUString aTmpString;
- pFormatter->GetOutputString( n, nIndex, aTmpString, &pColor );
- *p->pOUString = aTmpString;
+ pFormatter->GetOutputString( n, nIndex, *p->pOUString, &pColor );
delete pFormatter;
break;
}
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx
index c3b52f04eae7..7ec18a7dce6f 100644
--- a/basic/source/sbx/sbxscan.cxx
+++ b/basic/source/sbx/sbxscan.cxx
@@ -799,8 +799,7 @@ void SbxValue::Format( OUString& rRes, const OUString* pFmt ) const
aFormatter.PutandConvertEntry( aFmtStr, nCheckPos, nType, nIndex, LANGUAGE_ENGLISH, eLangType );
OUString aTime;
aFormatter.GetOutputString( nNumber, nIndex, aTime, &pCol );
- rRes += " ";
- rRes += aTime;
+ rRes += " " + aTime;
}
}
else