diff options
Diffstat (limited to 'sc/source/core/tool/unitconv.cxx')
-rw-r--r-- | sc/source/core/tool/unitconv.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sc/source/core/tool/unitconv.cxx b/sc/source/core/tool/unitconv.cxx index 354c1ca5ab36..9451db9c1809 100644 --- a/sc/source/core/tool/unitconv.cxx +++ b/sc/source/core/tool/unitconv.cxx @@ -37,10 +37,7 @@ ScUnitConverterData::ScUnitConverterData( OUString ScUnitConverterData::BuildIndexString( const OUString& rFromUnit, const OUString& rToUnit ) { - OUStringBuffer aBuf(rFromUnit); - aBuf.append(cDelim); - aBuf.append(rToUnit); - return aBuf.makeStringAndClear(); + return rFromUnit + OUStringLiteral1(cDelim) + rToUnit; } // ScUnitConverter |