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 /include | |
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 'include')
-rw-r--r-- | include/linguistic/lngprops.hxx | 2 | ||||
-rw-r--r-- | include/linguistic/misc.hxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/linguistic/lngprops.hxx b/include/linguistic/lngprops.hxx index 9861a384b3bd..62a72f34b5aa 100644 --- a/include/linguistic/lngprops.hxx +++ b/include/linguistic/lngprops.hxx @@ -22,7 +22,7 @@ // maximal number of suggestions to be returned in spelling context-menu // (may not include results added by looking up user dictionaries) -#define UPN_MAX_NUMBER_OF_SUGGESTIONS "MaxNumberOfSuggestions" +inline constexpr OUStringLiteral UPN_MAX_NUMBER_OF_SUGGESTIONS = u"MaxNumberOfSuggestions"; #endif diff --git a/include/linguistic/misc.hxx b/include/linguistic/misc.hxx index a7addd9c3246..21da5776a690 100644 --- a/include/linguistic/misc.hxx +++ b/include/linguistic/misc.hxx @@ -46,10 +46,10 @@ class CharClass; class LocaleDataWrapper; -#define SN_GRAMMARCHECKER u"com.sun.star.linguistic2.Proofreader" -#define SN_SPELLCHECKER u"com.sun.star.linguistic2.SpellChecker" -#define SN_HYPHENATOR u"com.sun.star.linguistic2.Hyphenator" -#define SN_THESAURUS u"com.sun.star.linguistic2.Thesaurus" +inline constexpr OUStringLiteral SN_GRAMMARCHECKER = u"com.sun.star.linguistic2.Proofreader"; +inline constexpr OUStringLiteral SN_SPELLCHECKER = u"com.sun.star.linguistic2.SpellChecker"; +inline constexpr OUStringLiteral SN_HYPHENATOR = u"com.sun.star.linguistic2.Hyphenator"; +inline constexpr OUStringLiteral SN_THESAURUS = u"com.sun.star.linguistic2.Thesaurus"; namespace linguistic |