Fix compiling with JsonCpp 1.7.1

This commit is contained in:
Sude 2016-03-25 23:09:17 +02:00
parent 3e61a94d1e
commit 519cb78d38

View File

@ -388,11 +388,11 @@ int Util::getTerminalWidth()
void Util::getDownloaderUrlsFromJSON(const Json::Value &root, std::vector<std::string> &urls)
{
if(root.size() > 0) {
for(Json::ValueIterator it = root.begin() ; it != root.end() ; ++it)
for(Json::ValueConstIterator it = root.begin() ; it != root.end() ; ++it)
{
if (it.key() == "downloaderUrl")
{
Json::Value& url = *it;
Json::Value url = *it;
urls.push_back(url.asString());
}
else