summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-10 08:11:47 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-10 08:11:47 +0100
commit3b4a35762e47d944ce004cf1a5a2d84fbc78979f (patch)
treee26bc41a62c716f0061c814517e3386076887bac /i18nlangtag
parent4eccdab6fca3b256caab59a7cc01d0c4e7f47183 (diff)
New loplugin:conststringvar: i18nlangtag
Change-Id: I261755055109430e6e8974efc57cc82fce8fd28a
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/isolang/inunx.cxx4
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