summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/numberformatsbuffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/oox/numberformatsbuffer.cxx')
-rw-r--r--sc/source/filter/oox/numberformatsbuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/oox/numberformatsbuffer.cxx b/sc/source/filter/oox/numberformatsbuffer.cxx
index 288e9d3ad42f..d0d3c37d3106 100644
--- a/sc/source/filter/oox/numberformatsbuffer.cxx
+++ b/sc/source/filter/oox/numberformatsbuffer.cxx
@@ -1891,7 +1891,7 @@ void NumberFormat::setFormatCode( const OUString& rFmtCode )
void NumberFormat::setFormatCode( const Locale& rLocale, const sal_Char* pcFmtCode )
{
maModel.maLocale = rLocale;
- maModel.maFmtCode = OUString::fromUtf8( OString( pcFmtCode ) );
+ maModel.maFmtCode = OStringToOUString( OString( pcFmtCode ), RTL_TEXTENCODING_UTF8 );
maModel.mnPredefId = -1;
}