Don't use the iterator directly in Util::getDownloaderUrlsFromJSON

This commit is contained in:
Sude 2015-05-12 13:56:32 +03:00
parent c264f69eae
commit cd0a829d59

View File

@ -350,7 +350,10 @@ void Util::getDownloaderUrlsFromJSON(const Json::Value &root, std::vector<std::s
for(Json::ValueIterator it = root.begin() ; it != root.end() ; ++it) for(Json::ValueIterator it = root.begin() ; it != root.end() ; ++it)
{ {
if (it.key() == "downloaderUrl") if (it.key() == "downloaderUrl")
urls.push_back(it->asString()); {
Json::Value& url = *it;
urls.push_back(url.asString());
}
else else
getDownloaderUrlsFromJSON(*it, urls); getDownloaderUrlsFromJSON(*it, urls);
} }