diff options
Diffstat (limited to 'unotools/source/config/syslocaleoptions.cxx')
-rw-r--r-- | unotools/source/config/syslocaleoptions.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/unotools/source/config/syslocaleoptions.cxx b/unotools/source/config/syslocaleoptions.cxx index f3942f5b7c4d..7cbb817ee1bf 100644 --- a/unotools/source/config/syslocaleoptions.cxx +++ b/unotools/source/config/syslocaleoptions.cxx @@ -18,7 +18,6 @@ */ #include <com/sun/star/uno/Sequence.hxx> -#include <rtl/ustrbuf.hxx> #include <rtl/instance.hxx> #include <sal/log.hxx> #include <i18nlangtag/mslangid.hxx> @@ -660,11 +659,7 @@ OUString SvtSysLocaleOptions::CreateCurrencyConfigString( OUString aIsoStr( LanguageTag::convertToBcp47( eLang ) ); if ( !aIsoStr.isEmpty() ) { - OUStringBuffer aStr( rAbbrev.getLength() + 1 + aIsoStr.getLength() ); - aStr.append( rAbbrev ); - aStr.append( '-' ); - aStr.append( aIsoStr ); - return aStr.makeStringAndClear(); + return rAbbrev + "-" + aIsoStr; } else return rAbbrev; |