diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-17 21:01:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-18 15:13:51 +0100 |
commit | 06e2005ed83567452783003e3113ad6a92190c2d (patch) | |
tree | bb3a92154bb0bbaeda1e6d548f467229206dd49d /sw/source | |
parent | 8e01e881451333eadb8e23f619e2b4014de1442a (diff) |
convert LocaleDataWrapper to OUString
Change-Id: Icb5f5adf9139d1c0f0e86d8128ea6742ce20b138
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/bastyp/calc.cxx | 10 | ||||
-rw-r--r-- | sw/source/core/doc/docsort.cxx | 4 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/bastyp/calc.cxx b/sw/source/core/bastyp/calc.cxx index b19c2ccc1b9d..73baaf1ce835 100644 --- a/sw/source/core/bastyp/calc.cxx +++ b/sw/source/core/bastyp/calc.cxx @@ -467,7 +467,7 @@ String SwCalc::GetStrResult( double nValue, sal_Bool ) String aRetStr( ::rtl::math::doubleToUString( nValue, rtl_math_StringFormat_Automatic, nDec, - pLclData->getNumDecimalSep().GetChar(0), + pLclData->getNumDecimalSep()[0], true )); return aRetStr; @@ -916,8 +916,8 @@ if( !nUseOld ) else { sal_Unicode ch; - sal_Unicode cTSep = pLclData->getNumThousandSep().GetChar(0), - cDSep = pLclData->getNumDecimalSep().GetChar(0); + sal_Unicode cTSep = pLclData->getNumThousandSep()[0], + cDSep = pLclData->getNumDecimalSep()[0]; do { if( 0 == ( ch = NextCh( sCommand, nCommandPos ) ) ) @@ -1528,8 +1528,8 @@ lcl_Str2Double( const String& rCommand, xub_StrLen& rCommandPos, double& rVal, const sal_Unicode* pEnd; rVal = rtl_math_uStringToDouble( rCommand.GetBuffer() + rCommandPos, rCommand.GetBuffer() + rCommand.Len(), - pLclData->getNumDecimalSep().GetChar(0), - pLclData->getNumThousandSep().GetChar(0), + pLclData->getNumDecimalSep()[0], + pLclData->getNumThousandSep()[0], &eStatus, &pEnd ); rCommandPos = static_cast<xub_StrLen>(pEnd - rCommand.GetBuffer()); diff --git a/sw/source/core/doc/docsort.cxx b/sw/source/core/doc/docsort.cxx index 2412d981c260..7f31f84d5ee5 100644 --- a/sw/source/core/doc/docsort.cxx +++ b/sw/source/core/doc/docsort.cxx @@ -118,8 +118,8 @@ double SwSortElement::StrToDouble( const String& rStr ) const rtl_math_ConversionStatus eStatus; sal_Int32 nEnd; double nRet = ::rtl::math::stringToDouble( rStr, - pLclData->getNumDecimalSep().GetChar(0), - pLclData->getNumThousandSep().GetChar(0), + pLclData->getNumDecimalSep()[0], + pLclData->getNumThousandSep()[0], &eStatus, &nEnd ); if( rtl_math_ConversionStatus_Ok != eStatus || nEnd == 0 ) diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index 6af0100d5070..178483b57ab8 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -5605,7 +5605,7 @@ WW8Fib::WW8Fib(sal_uInt8 nVer) Locale aTempLocale; SvxLanguageToLocale( aTempLocale, lid ); LocaleDataWrapper aLocaleWrapper( ::comphelper::getProcessServiceFactory(), aTempLocale ); - nNumDecimalSep = aLocaleWrapper.getNumDecimalSep().GetChar( 0 ); + nNumDecimalSep = aLocaleWrapper.getNumDecimalSep()[0]; } sal_Unicode WW8Fib::getNumDecimalSep() const |