diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-25 21:28:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-25 21:46:40 +0300 |
commit | 81db0022e50e25d922ac7d67d9ec6017b8856f13 (patch) | |
tree | 0ead8c5df5b8eb00cbe5e07e2f7dc36170786846 /src/utils/stringutils.cpp | |
parent | 6317f3e0c1e2c6d2e88dd99443e7f45f7bb77f44 (diff) | |
download | manaverse-81db0022e50e25d922ac7d67d9ec6017b8856f13.tar.gz manaverse-81db0022e50e25d922ac7d67d9ec6017b8856f13.tar.bz2 manaverse-81db0022e50e25d922ac7d67d9ec6017b8856f13.tar.xz manaverse-81db0022e50e25d922ac7d67d9ec6017b8856f13.zip |
Fix old casts.
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r-- | src/utils/stringutils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 2f478a909..5a7ea87fd 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -522,9 +522,9 @@ std::string stringToHexPath(const std::string &str) if (str.empty()) return ""; - std::string hex = strprintf("%%%2x/", (int)str[0]); + std::string hex = strprintf("%%%2x/", static_cast<int>(str[0])); for (unsigned f = 1; f < str.size(); f ++) - hex += strprintf("%%%2x", (int)str[f]); + hex += strprintf("%%%2x", static_cast<int>(str[f])); return hex; } @@ -600,7 +600,7 @@ bool findCutFirst(std::string &str1, std::string str2) std::string &removeProtocol(std::string &url) { int i = url.find("://"); - if (i != (int)std::string::npos) + if (i != static_cast<int>(std::string::npos)) url = url.substr(i + 3); return url; } |