summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2018-12-24 22:59:13 +0900
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-12-26 08:13:42 +0100
commit538ed5f34886dbaa593e6b8c2dd93bfb3fde392a (patch)
tree2a1568b287a6d8713fc339d18db80a4dc7e5f9b8 /basic
parent6374249da32976a3375fa3d098da467578ffb4c1 (diff)
basic: Spare temporary variable
Change-Id: I6c39061e04537c01c87f6cb2f40a35dd0a551a08 Reviewed-on: https://gerrit.libreoffice.org/65597 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxscan.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx
index d0d7cd52326e..6b785b3fdca8 100644
--- a/basic/source/sbx/sbxscan.cxx
+++ b/basic/source/sbx/sbxscan.cxx
@@ -884,11 +884,7 @@ void SbxValue::Format( OUString& rRes, const OUString* pFmt ) const
}
else
- {
- OUString aTmpString( rRes );
- ImpCvtNum( GetDouble(), nComma, aTmpString );
- rRes = aTmpString;
- }
+ ImpCvtNum( GetDouble(), nComma, rRes );
break;
case SbxSTRING:
if( pFmt )