diff options
author | joerg <joerg> | 2016-05-05 22:06:39 +0000 |
---|---|---|
committer | joerg <joerg> | 2016-05-05 22:06:39 +0000 |
commit | 2db59c42337f3018977e656b5e92f7191907bf27 (patch) | |
tree | c1d9358b3669226e7a7a24767497e9d4e5390d88 /games | |
parent | d004c75f8f2fe38a321348ff6f59d2dbf2e264d2 (diff) | |
download | pkgsrc-2db59c42337f3018977e656b5e92f7191907bf27.tar.gz |
With newer jsoncpp interface, the iterator has to be constant.
Diffstat (limited to 'games')
-rw-r--r-- | games/lgogdownloader/distinfo | 3 | ||||
-rw-r--r-- | games/lgogdownloader/patches/patch-src_util.cpp | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/games/lgogdownloader/distinfo b/games/lgogdownloader/distinfo index 444f108144d..8bc61028547 100644 --- a/games/lgogdownloader/distinfo +++ b/games/lgogdownloader/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.17 2016/03/13 08:49:31 wiz Exp $ +$NetBSD: distinfo,v 1.18 2016/05/05 22:06:39 joerg Exp $ SHA1 (lgogdownloader-2.27.tar.gz) = 8e6841637d9a6ea8b0ed3c346ae96fa48655db41 RMD160 (lgogdownloader-2.27.tar.gz) = 89cc6e373528326712abbd54fa1f7d468875c3f5 SHA512 (lgogdownloader-2.27.tar.gz) = 3dd2845b801c883d42bb12bfeb4c28ab6852524a0397ea313b7e4b0195e575a255177b85281bfd923765ac49cfc313dc5bd62a1188e1c465172f79ec281ea0a7 Size (lgogdownloader-2.27.tar.gz) = 50433 bytes SHA1 (patch-cmake_FindJsoncpp.cmake) = 0ab831e8d26625a748cf9c4ab270cd7a39a4472e +SHA1 (patch-src_util.cpp) = 223045f669002ba1d21bf1951527b043da7e5b77 diff --git a/games/lgogdownloader/patches/patch-src_util.cpp b/games/lgogdownloader/patches/patch-src_util.cpp new file mode 100644 index 00000000000..c8facc26b3d --- /dev/null +++ b/games/lgogdownloader/patches/patch-src_util.cpp @@ -0,0 +1,18 @@ +$NetBSD: patch-src_util.cpp,v 1.1 2016/05/05 22:06:39 joerg Exp $ + +--- src/util.cpp.orig 2016-05-04 12:02:30.617950547 +0000 ++++ src/util.cpp +@@ -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; ++ const Json::Value& url = *it; + urls.push_back(url.asString()); + } + else |