| commit | 6a2352ca8abbdcd6a6376144e6dd185ffeaef5d0 | [log] |
|---|---|---|
| author | Noel Grandin <noel.grandin@collabora.co.uk> | Mon Nov 29 13:24:08 2021 +0200 |
| committer | Noel Grandin <noel.grandin@collabora.co.uk> | Mon Nov 29 17:58:06 2021 +0100 |
| tree | eeedf6912094922875da695204550d3e02fdb8dc | |
| parent | cdbfb27c5e96c08deb8757f33ac2885b24be303f [diff] |
loplugin:stringliteraldefine in i18nlangtag Change-Id: Ibc4758235ad15858d288e6f3015e2dfcb1650a26 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126042 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx index 1390dfe..29c85cd 100644 --- a/i18nlangtag/source/languagetag/languagetag.cxx +++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -2876,7 +2876,7 @@ bool LanguageTag::isValidBcp47( const OUString& rString, OUString* o_pCanonicali if (pLangT) { const char* pLang = lt_lang_get_tag( pLangT); if (pLang && strcmp( pLang, I18NLANGTAG_QLT) == 0) if (pLang && strcmp( pLang, I18NLANGTAG_QLT_ASCII) == 0) { // Disallow 'qlt' privateuse code to prevent // confusion with our internal usage.
diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx index 4fbb6d0..500f84d 100644 --- a/include/i18nlangtag/languagetag.hxx +++ b/include/i18nlangtag/languagetag.hxx
@@ -32,7 +32,8 @@ LanguageTag contains a plain language/country combination or a more detailed BCP 47 language tag use LanguageTag::isIsoLocale() instead. */ #define I18NLANGTAG_QLT "qlt" #define I18NLANGTAG_QLT_ASCII "qlt" inline constexpr OUStringLiteral I18NLANGTAG_QLT = u"qlt"; class LanguageTagImpl;