diff options
author | Arnaud VERSINI <arnaud.versini@libreoffice.org> | 2024-04-08 11:13:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-04-08 23:18:31 +0200 |
commit | 8dacc3e636ff85f7f2edb971ff6e269ed031aaaf (patch) | |
tree | 825e9c385b583e19fa0f4e8612f69b7059c8fe0a /i18npool/source/breakiterator | |
parent | e7bb3a52067c426eedffddf86e7d5f0903562da2 (diff) |
i18npool : use OUString literal
Change-Id: I202f09303fd385cfcaa468411d0fae8b1707cf88
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165884
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/source/breakiterator')
-rw-r--r-- | i18npool/source/breakiterator/breakiterator_cjk.cxx | 10 | ||||
-rw-r--r-- | i18npool/source/breakiterator/breakiterator_th.cxx | 2 | ||||
-rw-r--r-- | i18npool/source/breakiterator/breakiterator_unicode.cxx | 7 |
3 files changed, 9 insertions, 10 deletions
diff --git a/i18npool/source/breakiterator/breakiterator_cjk.cxx b/i18npool/source/breakiterator/breakiterator_cjk.cxx index 00dc5e9db0f6..22ac459a72a4 100644 --- a/i18npool/source/breakiterator/breakiterator_cjk.cxx +++ b/i18npool/source/breakiterator/breakiterator_cjk.cxx @@ -34,7 +34,7 @@ namespace i18npool { BreakIterator_CJK::BreakIterator_CJK() { - cBreakIterator = "com.sun.star.i18n.BreakIterator_CJK"; + cBreakIterator = u"com.sun.star.i18n.BreakIterator_CJK"_ustr; } Boundary SAL_CALL @@ -146,7 +146,7 @@ BreakIterator_zh::BreakIterator_zh() m_oDict.emplace("zh"); assert(hangingCharacters.pData); hangingCharacters = LocaleDataImpl::get()->getHangingCharacters(LOCALE("zh", "CN")); - cBreakIterator = "com.sun.star.i18n.BreakIterator_zh"; + cBreakIterator = u"com.sun.star.i18n.BreakIterator_zh"_ustr; } // ---------------------------------------------------- @@ -157,7 +157,7 @@ BreakIterator_zh_TW::BreakIterator_zh_TW() m_oDict.emplace("zh"); assert(hangingCharacters.pData); hangingCharacters = LocaleDataImpl::get()->getHangingCharacters(LOCALE("zh", "TW")); - cBreakIterator = "com.sun.star.i18n.BreakIterator_zh_TW"; + cBreakIterator = u"com.sun.star.i18n.BreakIterator_zh_TW"_ustr; } // ---------------------------------------------------- @@ -169,7 +169,7 @@ BreakIterator_ja::BreakIterator_ja() m_oDict->setJapaneseWordBreak(); assert(hangingCharacters.pData); hangingCharacters = LocaleDataImpl::get()->getHangingCharacters(LOCALE("ja", "JP")); - cBreakIterator = "com.sun.star.i18n.BreakIterator_ja"; + cBreakIterator = u"com.sun.star.i18n.BreakIterator_ja"_ustr; } // ---------------------------------------------------- @@ -179,7 +179,7 @@ BreakIterator_ko::BreakIterator_ko() { assert(hangingCharacters.pData); hangingCharacters = LocaleDataImpl::get()->getHangingCharacters(LOCALE("ko", "KR")); - cBreakIterator = "com.sun.star.i18n.BreakIterator_ko"; + cBreakIterator = u"com.sun.star.i18n.BreakIterator_ko"_ustr; } } diff --git a/i18npool/source/breakiterator/breakiterator_th.cxx b/i18npool/source/breakiterator/breakiterator_th.cxx index 531107b2a102..8d9245a4bf62 100644 --- a/i18npool/source/breakiterator/breakiterator_th.cxx +++ b/i18npool/source/breakiterator/breakiterator_th.cxx @@ -34,7 +34,7 @@ namespace i18npool { */ BreakIterator_th::BreakIterator_th() { - cBreakIterator = "com.sun.star.i18n.BreakIterator_th"; + cBreakIterator = u"com.sun.star.i18n.BreakIterator_th"_ustr; // to improve performance, alloc big enough memory in construct. m_aNextCellIndex.assign(512, 0); m_aPreviousCellIndex.assign(512, 0); diff --git a/i18npool/source/breakiterator/breakiterator_unicode.cxx b/i18npool/source/breakiterator/breakiterator_unicode.cxx index 4927a82293fc..0caca6ab31ce 100644 --- a/i18npool/source/breakiterator/breakiterator_unicode.cxx +++ b/i18npool/source/breakiterator/breakiterator_unicode.cxx @@ -48,7 +48,7 @@ namespace i18npool { thread_local static BreakIterator_Unicode::BIMap theBIMap; BreakIterator_Unicode::BreakIterator_Unicode() - : cBreakIterator( "com.sun.star.i18n.BreakIterator_Unicode" ) // implementation name + : cBreakIterator( u"com.sun.star.i18n.BreakIterator_Unicode"_ustr ) // implementation name , lineRule( "line" ) , icuBI( nullptr ) { @@ -579,7 +579,7 @@ LineBreakResults SAL_CALL BreakIterator_Unicode::getLineBreak( OUString SAL_CALL BreakIterator_Unicode::getImplementationName() { - return OUString::createFromAscii(cBreakIterator); + return cBreakIterator; } sal_Bool SAL_CALL @@ -591,8 +591,7 @@ BreakIterator_Unicode::supportsService(const OUString& rServiceName) uno::Sequence< OUString > SAL_CALL BreakIterator_Unicode::getSupportedServiceNames() { - uno::Sequence< OUString > aRet { OUString::createFromAscii(cBreakIterator) }; - return aRet; + return{ cBreakIterator }; } } |