diff options
Diffstat (limited to 'sw/source/filter/ww8')
-rw-r--r-- | sw/source/filter/ww8/writerwordglue.cxx | 6 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par5.cxx | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/writerwordglue.cxx b/sw/source/filter/ww8/writerwordglue.cxx index a515b2c44503..2e08a761ba68 100644 --- a/sw/source/filter/ww8/writerwordglue.cxx +++ b/sw/source/filter/ww8/writerwordglue.cxx @@ -734,7 +734,7 @@ namespace sw sal_uInt16 nDocLang) { // tell the Formatter about the new entry - sal_uInt16 nCheckPos = 0; + sal_Int32 nCheckPos = 0; short nType = NUMBERFORMAT_DEFINED; sal_uInt32 nKey = 0; @@ -949,7 +949,9 @@ namespace sw if (bHijri) rParams.Insert(rtl::OUString("[~hijri]"), 0); - pFormatter->PutEntry(rParams, nCheckPos, nType, nKey, rLang); + OUString sTemp(rParams); + pFormatter->PutEntry(sTemp, nCheckPos, nType, nKey, rLang); + rParams = sTemp; return nKey; } diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx index 037c4bed7c8f..1075590ab09a 100644 --- a/sw/source/filter/ww8/ww8par5.cxx +++ b/sw/source/filter/ww8/ww8par5.cxx @@ -633,12 +633,14 @@ short SwWW8ImplReader::GetTimeDatePara(String& rStr, sal_uInt32& rFormat, if (bHijri) sParams.Insert(rtl::OUString("[~hijri]"), 0); - sal_uInt16 nCheckPos = 0; - sal_Int16 nType = NUMBERFORMAT_DEFINED; + sal_Int32 nCheckPos = 0; + short nType = NUMBERFORMAT_DEFINED; rFormat = 0; - pFormatter->PutandConvertEntry(sParams, nCheckPos, nType, rFormat, - LANGUAGE_ENGLISH_US, rLang); + OUString sTemp(sParams); + pFormatter->PutandConvertEntry(sTemp, nCheckPos, nType, rFormat, + LANGUAGE_ENGLISH_US, rLang); + sParams = sTemp; return bHasTime ? NUMBERFORMAT_DATETIME : NUMBERFORMAT_DATE; } |