From 0940f4a767d918832733bc20f9c393be03377f7f Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 2 Jun 2013 13:14:33 +0200 Subject: [PATCH] -fix compil warrnings --- src/system/ytparser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/system/ytparser.cpp b/src/system/ytparser.cpp index 0c0b833bb..f164d6da4 100644 --- a/src/system/ytparser.cpp +++ b/src/system/ytparser.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -171,7 +172,7 @@ void cYTFeedParser::decodeUrl(std::string &url) void cYTFeedParser::splitString(std::string &str, std::string delim, std::vector &strlist, int start) { strlist.clear(); - int end = 0; + unsigned int end = 0; while ((end = str.find(delim, start)) != std::string::npos) { strlist.push_back(str.substr(start, end - start)); start = end + delim.size(); @@ -181,7 +182,7 @@ void cYTFeedParser::splitString(std::string &str, std::string delim, std::vector void cYTFeedParser::splitString(std::string &str, std::string delim, std::map &strmap, int start) { - int end = 0; + unsigned int end = 0; if ((end = str.find(delim, start)) != std::string::npos) { strmap[str.substr(start, end - start)] = str.substr(end - start + delim.size()); }