Improved loplugin:stringconstant (now that GCC 7 supports it): i18nlangtag

Change-Id: I04e013d61cc6b85fe6234f7d2934f22cc6c266e9
Reviewed-on: https://gerrit.libreoffice.org/76671
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2019-07-30 17:54:13 +02:00
parent 24556a4912
commit 64e62cfa74

View File

@@ -2344,7 +2344,7 @@ LanguageTag & LanguageTag::makeFallback()
OUString LanguageTag::getBcp47MS() const
{
if (getLanguageType() == LANGUAGE_SPANISH_DATED)
return OUString("es-ES_tradnl");
return "es-ES_tradnl";
return getBcp47();
}