mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-08 16:33:22 +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)
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user