mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-02 05:52:31 +01:00
Don't use the iterator directly in Util::getDownloaderUrlsFromJSON
This commit is contained in:
parent
c264f69eae
commit
cd0a829d59
@ -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)
|
||||
{
|
||||
if (it.key() == "downloaderUrl")
|
||||
urls.push_back(it->asString());
|
||||
{
|
||||
Json::Value& url = *it;
|
||||
urls.push_back(url.asString());
|
||||
}
|
||||
else
|
||||
getDownloaderUrlsFromJSON(*it, urls);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user