From cd0a829d59f2544c70fd5db7034d3daf031cb65f Mon Sep 17 00:00:00 2001 From: Sude Date: Tue, 12 May 2015 13:56:32 +0300 Subject: [PATCH] Don't use the iterator directly in Util::getDownloaderUrlsFromJSON --- src/util.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index 8a854a7..29aadf2 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -350,7 +350,10 @@ void Util::getDownloaderUrlsFromJSON(const Json::Value &root, std::vectorasString()); + { + Json::Value& url = *it; + urls.push_back(url.asString()); + } else getDownloaderUrlsFromJSON(*it, urls); }