mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-02 05:52:31 +01:00
Fix compiling with JsonCpp 1.7.1
This commit is contained in:
parent
3e61a94d1e
commit
519cb78d38
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user