From 761682b6254a3d43e65ff45e07683c61afa6f1e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 31 Mar 2012 16:54:22 +0300 Subject: Last part of fixes. --- src/utils/langs.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/utils/langs.cpp') 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(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(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(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(std::string::npos)) + if (dot != std::string::npos) return lang.substr(0, dot); return lang; } -- cgit v1.2.3-70-g09d2