summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par5.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/ww8/ww8par5.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par5.cxx10
1 files changed, 6 insertions, 4 deletions
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;
}