Use std::string instead of JSONCPP_STRING

This commit is contained in:
Sude 2018-02-15 19:42:10 +02:00
parent 553c6dce1c
commit d0177031e6

View File

@ -377,7 +377,7 @@ std::vector<gameFile> galaxyAPI::fileJsonNodeToGameFileVector(const std::string&
Json::Value downlinkJson; Json::Value downlinkJson;
Json::CharReaderBuilder builder; Json::CharReaderBuilder builder;
std::istringstream downlink_stream(downlinkResponse); std::istringstream downlink_stream(downlinkResponse);
JSONCPP_STRING errs; std::string errs;
Json::parseFromStream(builder, downlink_stream, &downlinkJson, &errs); Json::parseFromStream(builder, downlink_stream, &downlinkJson, &errs);
std::string downlink_url = downlinkJson["downlink"].asString(); std::string downlink_url = downlinkJson["downlink"].asString();