diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-31 16:54:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-01 03:56:16 +0300 |
commit | 761682b6254a3d43e65ff45e07683c61afa6f1e4 (patch) | |
tree | 2ee462840f3aadb1e96bfa5c6784ec2cc0d2861a /src/utils/langs.cpp | |
parent | a39f63cdfa5ce15b22f294a8bb1db3a036ce462d (diff) | |
download | manaverse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.gz manaverse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.bz2 manaverse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.xz manaverse-761682b6254a3d43e65ff45e07683c61afa6f1e4.zip |
Last part of fixes.
Diffstat (limited to 'src/utils/langs.cpp')
-rw-r--r-- | src/utils/langs.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/utils/langs.cpp b/src/utils/langs.cpp index 1aa3e472d..90a83d6c4 100644 --- a/src/utils/langs.cpp +++ b/src/utils/langs.cpp @@ -43,12 +43,12 @@ LangVect getLang() lang = lng; } - int dot = lang.find("."); - if (dot != static_cast<signed>(std::string::npos)) + size_t dot = lang.find("."); + if (dot != std::string::npos) lang = lang.substr(0, dot); langs.push_back(lang); dot = lang.find("_"); - if (dot != static_cast<signed>(std::string::npos)) + if (dot != std::string::npos) langs.push_back(lang.substr(0, dot)); return langs; } @@ -77,11 +77,11 @@ std::string getLangShort() lang = lng; } - int dot = lang.find("."); - if (dot != static_cast<signed>(std::string::npos)) + size_t dot = lang.find("."); + if (dot != std::string::npos) lang = lang.substr(0, dot); dot = lang.find("_"); - if (dot != static_cast<signed>(std::string::npos)) + if (dot != std::string::npos) return lang.substr(0, dot); return lang; } |