summaryrefslogtreecommitdiff
path: root/src/utils/langs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/langs.cpp')
-rw-r--r--src/utils/langs.cpp12
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;
}