diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-04-07 12:06:47 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-04-07 14:23:11 +0200 |
commit | 1946794ae09ba732022fe6a74ea45e304ab70b84 (patch) | |
tree | e32bd7ba61fa021ecc7f8c85959df8ca837d6e81 /lotuswordpro/source/filter/lwptools.cxx | |
parent | 5b08c6e7a21dda94d5b755eea0b1ed1e9c199bec (diff) |
mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).
Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
Diffstat (limited to 'lotuswordpro/source/filter/lwptools.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwptools.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lotuswordpro/source/filter/lwptools.cxx b/lotuswordpro/source/filter/lwptools.cxx index 07879029c2e5..dd723cc42816 100644 --- a/lotuswordpro/source/filter/lwptools.cxx +++ b/lotuswordpro/source/filter/lwptools.cxx @@ -235,7 +235,7 @@ OUString LwpTools::convertToFileUrl(const OString &fileName) OUString LwpTools::DateTimeToOUString(LtTm & dt) { - rtl::OUStringBuffer buf; + OUStringBuffer buf; buf.append(dt.tm_year); buf.append( A2OUSTR("-") ); buf.append(dt.tm_mon); @@ -262,10 +262,10 @@ XFDateStyle* LwpTools::GetSystemDateStyle(sal_Bool bLongFormat) else style = icu::DateFormat::SHORT;//system short date format /* ::com::sun::star::lang::Locale aLocale=Application::GetSettings().GetLocale(); - rtl::OUString strLang = aLocale.Language; - rtl::OUString strCountry = aLocale.Country; + OUString strLang = aLocale.Language; + OUString strCountry = aLocale.Country; strLang = strLang + A2OUSTR("_"); - rtl::OUString strLocale = strLang + strCountry; + OUString strLocale = strLang + strCountry; int32_t nLength = 0; int32_t nLengthNeed; @@ -287,8 +287,8 @@ XFDateStyle* LwpTools::GetSystemDateStyle(sal_Bool bLongFormat) /* FIXME-BCP47: handle language tags! */ //1 get locale for system ::com::sun::star::lang::Locale aLocale=Application::GetSettings().GetLanguageTag().getLocale(); - rtl::OUString strLang = aLocale.Language; - rtl::OUString strCountry = aLocale.Country; + OUString strLang = aLocale.Language; + OUString strCountry = aLocale.Country; icu::Locale bLocale((char*)(OUStringToOString(strLang,RTL_TEXTENCODING_MS_1252).getStr()), (char*)(OUStringToOString(strCountry,RTL_TEXTENCODING_MS_1252).getStr())); //2 get icu format pattern by locale @@ -676,10 +676,10 @@ XFDateStyle* LwpTools::GetSystemDateStyle(sal_Bool bLongFormat) XFTimeStyle* LwpTools::GetSystemTimeStyle() { /* ::com::sun::star::lang::Locale aLocale=Application::GetSettings().GetLocale(); - rtl::OUString strLang = aLocale.Language; - rtl::OUString strCountry = aLocale.Country; + OUString strLang = aLocale.Language; + OUString strCountry = aLocale.Country; strLang = strLang + A2OUSTR("_"); - rtl::OUString strLocale = strLang + strCountry; + OUString strLocale = strLang + strCountry; int32_t nLength = 0; int32_t nLengthNeed; @@ -701,8 +701,8 @@ XFTimeStyle* LwpTools::GetSystemTimeStyle() /* FIXME-BCP47: handle language tags! */ //1 get locale for system ::com::sun::star::lang::Locale aLocale=Application::GetSettings().GetLanguageTag().getLocale(); - rtl::OUString strLang = aLocale.Language; - rtl::OUString strCountry = aLocale.Country; + OUString strLang = aLocale.Language; + OUString strCountry = aLocale.Country; icu::Locale bLocale((char*)(OUStringToOString(strLang,RTL_TEXTENCODING_MS_1252).getStr()), (char*)(OUStringToOString(strCountry,RTL_TEXTENCODING_MS_1252).getStr())); |