diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-09 15:42:59 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-09 15:42:59 +0100 |
commit | ff7ee9796f93b7cd7a8f80e9efbc42909d509344 (patch) | |
tree | 500ce954c6981cbab0388e5d6514b9e6b58a0851 /i18npool/source/collator | |
parent | 6e50fef4c055b2110328dc820038f41fc6c85530 (diff) |
New loplugin:externvar: i18npool
Change-Id: Id38d1fde0e0f6e08899e83697f586d513b635aad
Diffstat (limited to 'i18npool/source/collator')
-rw-r--r-- | i18npool/source/collator/chaptercollator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/source/collator/chaptercollator.cxx b/i18npool/source/collator/chaptercollator.cxx index b18e0fcf8859..68315bfb9c81 100644 --- a/i18npool/source/collator/chaptercollator.cxx +++ b/i18npool/source/collator/chaptercollator.cxx @@ -73,12 +73,12 @@ ChapterCollator::compareSubstring( const OUString& str1, sal_Int32 off1, sal_Int return res1.Value == res2.Value ? 0 : res1.Value > res2.Value ? 1 : -1; } -const sal_Char *cChapCollator = "com.sun.star.i18n.ChapterCollator"; +const sal_Char cChapCollator[] = "com.sun.star.i18n.ChapterCollator"; OUString SAL_CALL ChapterCollator::getImplementationName() throw( RuntimeException, std::exception ) { - return OUString::createFromAscii(cChapCollator); + return OUString(cChapCollator); } sal_Bool SAL_CALL @@ -90,7 +90,7 @@ ChapterCollator::supportsService(const OUString& rServiceName) throw( RuntimeExc Sequence< OUString > SAL_CALL ChapterCollator::getSupportedServiceNames() throw( RuntimeException, std::exception ) { - Sequence< OUString > aRet { OUString::createFromAscii(cChapCollator) }; + Sequence< OUString > aRet { cChapCollator }; return aRet; } |