diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-05-30 15:00:23 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-05-30 16:41:40 -0500 |
commit | 1488171272e5e9d11f751482e3e372e5db58418b (patch) | |
tree | 1481a108540cf562bdaec78584bb8e0af9201d7d /i18npool/source/textconversion | |
parent | 8016dced31517e1695af932efedcf9f83a28d741 (diff) |
targeted string re-work
Change-Id: I1efff8e09079267f4129c474872d3fc49adeb831
Diffstat (limited to 'i18npool/source/textconversion')
-rw-r--r-- | i18npool/source/textconversion/textconversionImpl.cxx | 12 | ||||
-rw-r--r-- | i18npool/source/textconversion/textconversion_ko.cxx | 8 | ||||
-rw-r--r-- | i18npool/source/textconversion/textconversion_zh.cxx | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/i18npool/source/textconversion/textconversionImpl.cxx b/i18npool/source/textconversion/textconversionImpl.cxx index 484f9c639670..76cd37d4deea 100644 --- a/i18npool/source/textconversion/textconversionImpl.cxx +++ b/i18npool/source/textconversion/textconversionImpl.cxx @@ -98,17 +98,17 @@ TextConversionImpl::getLocaleSpecificTextConversion(const Locale& rLocale) throw Reference < XInterface > xI; xI = xMSF->createInstance( - OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.i18n.TextConversion_")) + aLocale.Language); + OUString("com.sun.star.i18n.TextConversion_") + aLocale.Language); if ( ! xI.is() ) xI = xMSF->createInstance( - OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.i18n.TextConversion_")) + aLocale.Language + - OUString(RTL_CONSTASCII_USTRINGPARAM("_")) + aLocale.Country); + OUString("com.sun.star.i18n.TextConversion_") + aLocale.Language + + OUString("_") + aLocale.Country); if ( ! xI.is() ) xI = xMSF->createInstance( - OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.i18n.TextConversion_")) + aLocale.Language + - OUString(RTL_CONSTASCII_USTRINGPARAM("_")) + aLocale.Country + - OUString(RTL_CONSTASCII_USTRINGPARAM("_")) + aLocale.Variant); + OUString("com.sun.star.i18n.TextConversion_") + aLocale.Language + + OUString("_") + aLocale.Country + + OUString("_") + aLocale.Variant); if (xI.is()) xI->queryInterface( getCppuType((const Reference< XTextConversion>*)0) ) >>= xTC; diff --git a/i18npool/source/textconversion/textconversion_ko.cxx b/i18npool/source/textconversion/textconversion_ko.cxx index 2d12354d1814..a543ec92e318 100644 --- a/i18npool/source/textconversion/textconversion_ko.cxx +++ b/i18npool/source/textconversion/textconversion_ko.cxx @@ -54,13 +54,13 @@ TextConversion_ko::TextConversion_ko( const Reference < XMultiServiceFactory >& Reference < XInterface > xI; xI = xMSF->createInstance( - OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.i18n.ConversionDictionary_ko"))); + OUString("com.sun.star.i18n.ConversionDictionary_ko")); if ( xI.is() ) xI->queryInterface( getCppuType((const Reference< XConversionDictionary>*)0) ) >>= xCD; xI = xMSF->createInstance( - OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.linguistic2.ConversionDictionaryList"))); + OUString("com.sun.star.linguistic2.ConversionDictionaryList")); if ( xI.is() ) xI->queryInterface( getCppuType((const Reference< XConversionDictionaryList>*)0) ) >>= xCDL; @@ -69,8 +69,8 @@ TextConversion_ko::TextConversion_ko( const Reference < XMultiServiceFactory >& // get maximum length of word in dictionary if (xCDL.is()) { - Locale loc(OUString(RTL_CONSTASCII_USTRINGPARAM("ko")), - OUString(RTL_CONSTASCII_USTRINGPARAM("KR")), + Locale loc(OUString("ko"), + OUString("KR"), OUString()); maxLeftLength = xCDL->queryMaxCharCount(loc, ConversionDictionaryType::HANGUL_HANJA, diff --git a/i18npool/source/textconversion/textconversion_zh.cxx b/i18npool/source/textconversion/textconversion_zh.cxx index 0438558f5cc3..ea6c6f3ee6b5 100644 --- a/i18npool/source/textconversion/textconversion_zh.cxx +++ b/i18npool/source/textconversion/textconversion_zh.cxx @@ -48,7 +48,7 @@ TextConversion_zh::TextConversion_zh( const Reference < XMultiServiceFactory >& { Reference < XInterface > xI; xI = xMSF->createInstance( - OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.linguistic2.ConversionDictionaryList"))); + OUString("com.sun.star.linguistic2.ConversionDictionaryList")); if ( xI.is() ) xI->queryInterface( getCppuType((const Reference< XConversionDictionaryList>*)0) ) >>= xCDL; |