diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-19 11:02:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-19 11:36:34 +0100 |
commit | addf580c2846e8de6457c9e710faedd3f0a7a7de (patch) | |
tree | cc5c4ea464db9419efba9b82d055388bf6863310 /linguistic | |
parent | bcf601f53ca50460e973a7ad8725aeed33170b2e (diff) |
loplugin:stringliteraldefine in linguistc
Change-Id: Id347daab7aa21ce8756dbc2d139ac022fc22be3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125536
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/convdic.hxx | 4 | ||||
-rw-r--r-- | linguistic/source/lngsvcmgr.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/linguistic/source/convdic.hxx b/linguistic/source/convdic.hxx index df0cd955a4c9..26dc2aee0517 100644 --- a/linguistic/source/convdic.hxx +++ b/linguistic/source/convdic.hxx @@ -31,10 +31,10 @@ #include <unordered_map> // text conversion dictionary extension -#define CONV_DIC_EXT "tcd" +inline constexpr OUStringLiteral CONV_DIC_EXT = u"tcd"; #define CONV_DIC_DOT_EXT ".tcd" -#define SN_CONV_DICTIONARY "com.sun.star.linguistic2.ConversionDictionary" +inline constexpr OUStringLiteral SN_CONV_DICTIONARY = u"com.sun.star.linguistic2.ConversionDictionary"; bool IsConvDic( const OUString &rFileURL, LanguageType &nLang, sal_Int16 &nConvType ); diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index 2ae09ee4d16e..1eaef662b316 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -618,7 +618,7 @@ void LngSvcMgr::UpdateAll() SvtLinguConfig aCfg; const int nNumServices = 4; - const sal_Unicode * const apServices[nNumServices] = { SN_SPELLCHECKER, SN_GRAMMARCHECKER, SN_HYPHENATOR, SN_THESAURUS }; + static constexpr rtl::OUStringConstExpr apServices[nNumServices] = { SN_SPELLCHECKER, SN_GRAMMARCHECKER, SN_HYPHENATOR, SN_THESAURUS }; const char * const apCurLists[nNumServices] = { "ServiceManager/SpellCheckerList", "ServiceManager/GrammarCheckerList", "ServiceManager/HyphenatorList", "ServiceManager/ThesaurusList" }; const char * const apLastFoundLists[nNumServices] = { "ServiceManager/LastFoundSpellCheckers", "ServiceManager/LastFoundGrammarCheckers", "ServiceManager/LastFoundHyphenators", "ServiceManager/LastFoundThesauri" }; |