diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-10 08:11:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-10 08:11:47 +0100 |
commit | 3b4a35762e47d944ce004cf1a5a2d84fbc78979f (patch) | |
tree | e26bc41a62c716f0061c814517e3386076887bac | |
parent | 4eccdab6fca3b256caab59a7cc01d0c4e7f47183 (diff) |
New loplugin:conststringvar: i18nlangtag
Change-Id: I261755055109430e6e8974efc57cc82fce8fd28a
-rw-r--r-- | i18nlangtag/source/isolang/inunx.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i18nlangtag/source/isolang/inunx.cxx b/i18nlangtag/source/isolang/inunx.cxx index cf0e5f4854cc..46b5e5b6cb40 100644 --- a/i18nlangtag/source/isolang/inunx.cxx +++ b/i18nlangtag/source/isolang/inunx.cxx @@ -42,7 +42,7 @@ static LanguageType nImplSystemUILanguage = LANGUAGE_DONTKNOW; // Get locale of category LC_CTYPE of environment variables static const sal_Char* getLangFromEnvironment() { - static const sal_Char* pFallback = "C"; + static const sal_Char* const pFallback = "C"; const sal_Char *pLang = nullptr; pLang = getenv ( "LC_ALL" ); @@ -60,7 +60,7 @@ static const sal_Char* getLangFromEnvironment() // Get locale of category LC_MESSAGES of environment variables static const sal_Char* getUILangFromEnvironment() { - static const sal_Char* pFallback = "C"; + static const sal_Char* const pFallback = "C"; const sal_Char *pLang = nullptr; pLang = getenv ( "LANGUAGE" ); // respect the GNU extension |