From addf580c2846e8de6457c9e710faedd3f0a7a7de Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 19 Nov 2021 11:02:19 +0200 Subject: loplugin:stringliteraldefine in linguistc Change-Id: Id347daab7aa21ce8756dbc2d139ac022fc22be3f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125536 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/linguistic/misc.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/linguistic/misc.hxx') 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 -- cgit