diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-04 19:11:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-04 19:11:53 +0300 |
commit | 3a407bb6b73a186eafd99bcec570f88097c4b2e1 (patch) | |
tree | ea57a752c348ba0a883294855ad3c62c16e9749d /src/utils/langs.cpp | |
parent | 872fc368f7b253f26714fc47323064f270b62b40 (diff) | |
download | manaverse-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.gz manaverse-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.bz2 manaverse-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.xz manaverse-3a407bb6b73a186eafd99bcec570f88097c4b2e1.zip |
Add const to more classes.
Diffstat (limited to 'src/utils/langs.cpp')
-rw-r--r-- | src/utils/langs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/langs.cpp b/src/utils/langs.cpp index 90a83d6c4..bc2837a27 100644 --- a/src/utils/langs.cpp +++ b/src/utils/langs.cpp @@ -37,7 +37,7 @@ LangVect getLang() std::string lang = config.getValue("lang", "").c_str(); if (lang.empty()) { - char *lng = getenv("LANG"); + const char *const lng = getenv("LANG"); if (!lng) return langs; lang = lng; @@ -58,7 +58,7 @@ std::string getLangSimple() std::string lang = config.getValue("lang", "").c_str(); if (lang.empty()) { - char *lng = getenv("LANG"); + const char *const lng = getenv("LANG"); if (!lng) return ""; return lng; @@ -71,7 +71,7 @@ std::string getLangShort() std::string lang = config.getValue("lang", "").c_str(); if (lang.empty()) { - char *lng = getenv("LANG"); + const char *const lng = getenv("LANG"); if (!lng) return ""; lang = lng; |