diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-21 20:44:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-22 12:37:39 +0200 |
commit | 335de1a2216523527f2a6a9aef4f5997f775e648 (patch) | |
tree | 5e6465d90ab11c003e5111d52e093b0281280f0c /sax/source | |
parent | 21aded1828b1a401a32b0b960f035370843f3771 (diff) |
no need makeStringAndClear() when appending to buffer
it just creates an unnecessary temporary
Change-Id: Ide3cd99b2ac4f2a621e5d55ce4bdc95d05430709
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114467
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax/source')
-rw-r--r-- | sax/source/tools/converter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index 7a66b89ac22d..3e76e0a5c5e5 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -659,7 +659,7 @@ void Converter::convertDouble( OUStringBuffer& rBuffer, fNumber *= fFactor; ::rtl::math::doubleToUStringBuffer( rBuffer, fNumber, rtl_math_StringFormat_Automatic, rtl_math_DecimalPlaces_Max, '.', true); if(bWriteUnits) - rBuffer.append(sUnit.makeStringAndClear()); + rBuffer.append(sUnit); } } |