diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-07-30 17:54:06 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-07-31 12:57:53 +0200 |
commit | 24556a49123f4c2f3c221488fc7015b49e459a7b (patch) | |
tree | 76ed8a6bd6cea0987178ed9ecae1f302fad28196 /i18npool/source/collator | |
parent | ab153c4142500a84c95b3dc90e0006a11a03fc0b (diff) |
Improved loplugin:stringconstant (now that GCC 7 supports it): i18npool
Change-Id: Icc5871d548fd7795936e58ff73b9d6fa7eeb6414
Reviewed-on: https://gerrit.libreoffice.org/76670
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'i18npool/source/collator')
-rw-r--r-- | i18npool/source/collator/chaptercollator.cxx | 2 | ||||
-rw-r--r-- | i18npool/source/collator/collatorImpl.cxx | 2 | ||||
-rw-r--r-- | i18npool/source/collator/collator_unicode.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/source/collator/chaptercollator.cxx b/i18npool/source/collator/chaptercollator.cxx index 1f48d61c7824..5b57f5cad03a 100644 --- a/i18npool/source/collator/chaptercollator.cxx +++ b/i18npool/source/collator/chaptercollator.cxx @@ -77,7 +77,7 @@ const sal_Char cChapCollator[] = "com.sun.star.i18n.ChapterCollator"; OUString SAL_CALL ChapterCollator::getImplementationName() { - return OUString(cChapCollator); + return cChapCollator; } sal_Bool SAL_CALL diff --git a/i18npool/source/collator/collatorImpl.cxx b/i18npool/source/collator/collatorImpl.cxx index c298a34910a9..fb2edb5f7447 100644 --- a/i18npool/source/collator/collatorImpl.cxx +++ b/i18npool/source/collator/collatorImpl.cxx @@ -208,7 +208,7 @@ CollatorImpl::loadCachedCollator(const lang::Locale& rLocale, const OUString& rS OUString SAL_CALL CollatorImpl::getImplementationName() { - return OUString("com.sun.star.i18n.Collator"); + return "com.sun.star.i18n.Collator"; } sal_Bool SAL_CALL CollatorImpl::supportsService(const OUString& rServiceName) diff --git a/i18npool/source/collator/collator_unicode.cxx b/i18npool/source/collator/collator_unicode.cxx index 0921aef13f8a..e2aee8282541 100644 --- a/i18npool/source/collator/collator_unicode.cxx +++ b/i18npool/source/collator/collator_unicode.cxx @@ -400,7 +400,7 @@ Collator_Unicode::loadCollatorAlgorithm(const OUString& rAlgorithm, const lang:: OUString SAL_CALL Collator_Unicode::getImplementationName() { - return OUString(implementationName); + return implementationName; } sal_Bool SAL_CALL |