diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-02-24 09:05:50 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-02-24 09:08:35 +0100 |
commit | 83aa6d8180f289e5ae4034560dbd95ab160b1ac2 (patch) | |
tree | 10fea22a5780ba93c594456130b4db1a93626592 /svl | |
parent | c1e06b7a91e0a2f2ddcf9d669bccb0eb488dc4f8 (diff) |
Remove some temporaries around calls to SvNumberFormatter methods
Change-Id: Ib03c97a52df120bac1ac9b2b9d2e52431ead1027
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/numfmuno.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/svl/source/numbers/numfmuno.cxx b/svl/source/numbers/numfmuno.cxx index 3b36695b18db..066ae284412e 100644 --- a/svl/source/numbers/numfmuno.cxx +++ b/svl/source/numbers/numfmuno.cxx @@ -243,9 +243,8 @@ OUString SAL_CALL SvNumberFormatterServiceObj::formatString( sal_Int32 nKey, SvNumberFormatter* pFormatter = xSupplier.is() ? xSupplier->GetNumberFormatter() : NULL; if (pFormatter) { - OUString aTemp = aString; Color* pColor = NULL; - pFormatter->GetOutputString(aTemp, nKey, aRet, &pColor); + pFormatter->GetOutputString(aString, nKey, aRet, &pColor); } else { @@ -265,10 +264,9 @@ util::Color SAL_CALL SvNumberFormatterServiceObj::queryColorForString( sal_Int32 SvNumberFormatter* pFormatter = xSupplier.is() ? xSupplier->GetNumberFormatter() : NULL; if (pFormatter) { - OUString aTemp = aString; OUString aStr; Color* pColor = NULL; - pFormatter->GetOutputString(aTemp, nKey, aStr, &pColor); + pFormatter->GetOutputString(aString, nKey, aStr, &pColor); if (pColor) { nRet = pColor->GetColor(); |