summaryrefslogtreecommitdiffstats
path: root/i18npool/source/collator
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-09 15:42:59 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-09 15:42:59 +0100
commitff7ee9796f93b7cd7a8f80e9efbc42909d509344 (patch)
tree500ce954c6981cbab0388e5d6514b9e6b58a0851 /i18npool/source/collator
parentNew loplugin:externvar: idlc (diff)
downloadcore-ff7ee9796f93b7cd7a8f80e9efbc42909d509344.tar.gz
core-ff7ee9796f93b7cd7a8f80e9efbc42909d509344.zip
New loplugin:externvar: i18npool
Change-Id: Id38d1fde0e0f6e08899e83697f586d513b635aad
Diffstat (limited to 'i18npool/source/collator')
-rw-r--r--i18npool/source/collator/chaptercollator.cxx6
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;
}