diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 12:20:12 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 12:20:12 +0100 |
commit | 2c571050006940a3a0be776efd8ad3b2854a1814 (patch) | |
tree | 923ef768e55f2ae4f056c81bc95b46bdc7b4354e /i18npool/source/indexentry | |
parent | 7948b273a9725c546e0dc32bece296dc872bdc04 (diff) |
i18npool: Use appropriate OUString functions on string constants
Change-Id: I82fea345a05c0327af3b75ccfd3358f54523c082
Diffstat (limited to 'i18npool/source/indexentry')
-rw-r--r-- | i18npool/source/indexentry/indexentrysupplier.cxx | 4 | ||||
-rw-r--r-- | i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/i18npool/source/indexentry/indexentrysupplier.cxx b/i18npool/source/indexentry/indexentrysupplier.cxx index 5704aa83841d..73ee94159d31 100644 --- a/i18npool/source/indexentry/indexentrysupplier.cxx +++ b/i18npool/source/indexentry/indexentrysupplier.cxx @@ -178,7 +178,7 @@ OUString SAL_CALL IndexEntrySupplier::getIndexFollowPageWord( sal_Bool bMorePage OUString SAL_CALL IndexEntrySupplier::getImplementationName() throw( RuntimeException, std::exception ) { - return OUString::createFromAscii( implementationName ); + return OUString( implementationName ); } sal_Bool SAL_CALL @@ -191,7 +191,7 @@ Sequence< OUString > SAL_CALL IndexEntrySupplier::getSupportedServiceNames() throw( RuntimeException, std::exception ) { Sequence< OUString > aRet(1); - aRet[0] = OUString::createFromAscii( implementationName ); + aRet[0] = implementationName; return aRet; } diff --git a/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx b/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx index 4e2b6ab3461f..a0120a89252e 100644 --- a/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx +++ b/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx @@ -68,13 +68,13 @@ sal_Bool SAL_CALL IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_syllable: const com::sun::star::lang::Locale& rLocale, const OUString& /*SortAlgorithm*/, sal_Int32 collatorOptions ) throw (com::sun::star::uno::RuntimeException, std::exception) { - return collator->loadCollatorAlgorithm(OUString::createFromAscii(first), rLocale, collatorOptions) == 0; + return collator->loadCollatorAlgorithm(first, rLocale, collatorOptions) == 0; } sal_Bool SAL_CALL IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_consonant::loadAlgorithm( const com::sun::star::lang::Locale& rLocale, const OUString& /*SortAlgorithm*/, sal_Int32 collatorOptions ) throw (com::sun::star::uno::RuntimeException, std::exception) { - return collator->loadCollatorAlgorithm(OUString::createFromAscii(first), rLocale, collatorOptions) == 0; + return collator->loadCollatorAlgorithm(first, rLocale, collatorOptions) == 0; } static const sal_Char last[] = "ja_phonetic (alphanumeric last)"; @@ -82,13 +82,13 @@ sal_Bool SAL_CALL IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_syllable:: const com::sun::star::lang::Locale& rLocale, const OUString& /*SortAlgorithm*/, sal_Int32 collatorOptions ) throw (com::sun::star::uno::RuntimeException, std::exception) { - return collator->loadCollatorAlgorithm(OUString::createFromAscii(last), rLocale, collatorOptions) == 0; + return collator->loadCollatorAlgorithm(last, rLocale, collatorOptions) == 0; } sal_Bool SAL_CALL IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_consonant::loadAlgorithm( const com::sun::star::lang::Locale& rLocale, const OUString& /*SortAlgorithm*/, sal_Int32 collatorOptions ) throw (com::sun::star::uno::RuntimeException, std::exception) { - return collator->loadCollatorAlgorithm(OUString::createFromAscii(last), rLocale, collatorOptions) == 0; + return collator->loadCollatorAlgorithm(last, rLocale, collatorOptions) == 0; } } } } } |