summaryrefslogtreecommitdiff
path: root/src/utils/gettexthelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-01-16 05:45:52 +0300
committerAndrei Karas <akaras@inbox.ru>2018-01-16 05:45:52 +0300
commit5c4c66c0873e2b21d87929ab7e3389883c4ee074 (patch)
tree1c14043c6b4d6089e0f15006f902b4ef8697be26 /src/utils/gettexthelper.cpp
parent43abb22c0626529c8465f25bd62b813898abe840 (diff)
downloadmanaplus-5c4c66c0873e2b21d87929ab7e3389883c4ee074.tar.gz
manaplus-5c4c66c0873e2b21d87929ab7e3389883c4ee074.tar.bz2
manaplus-5c4c66c0873e2b21d87929ab7e3389883c4ee074.tar.xz
manaplus-5c4c66c0873e2b21d87929ab7e3389883c4ee074.zip
Fix code style.
Diffstat (limited to 'src/utils/gettexthelper.cpp')
-rw-r--r--src/utils/gettexthelper.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/utils/gettexthelper.cpp b/src/utils/gettexthelper.cpp
index 422c7d36f..9b8f16352 100644
--- a/src/utils/gettexthelper.cpp
+++ b/src/utils/gettexthelper.cpp
@@ -73,11 +73,8 @@ static std::string setLangEnv()
putenv(const_cast<char*>(("LANGUAGE=" + lang).c_str()));
#else // WIN32
- if (!lang.empty())
- {
- setEnv("LANG", lang.c_str());
- setEnv("LANGUAGE", lang.c_str());
- }
+ setEnv("LANG", lang.c_str());
+ setEnv("LANGUAGE", lang.c_str());
#endif // WIN32
}