summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-09 20:00:06 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-09 20:00:06 +0300
commit14c89c0f50dd04c1187819abcc24490fa975574e (patch)
treecddff3ba490b5115c5c71d90a1898bb97f9ee06b /src/utils/stringutils.cpp
parent7e3bd20e9675202e30fac741f3d3acb4f19b109d (diff)
downloadplus-14c89c0f50dd04c1187819abcc24490fa975574e.tar.gz
plus-14c89c0f50dd04c1187819abcc24490fa975574e.tar.bz2
plus-14c89c0f50dd04c1187819abcc24490fa975574e.tar.xz
plus-14c89c0f50dd04c1187819abcc24490fa975574e.zip
Small fix to code style and compilation warning.
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r--src/utils/stringutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index a7e1b6c7d..8ae155bf7 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -448,7 +448,7 @@ std::string getLang()
std::string lang(lng);
int dot = lang.find(".");
- if (dot == std::string::npos && dot > 0)
+ if (dot == (signed)std::string::npos)
return lang;
return lang.substr(0, dot);