mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Fix -Wcatch-value for GCC 8
This commit is contained in:
parent
8ca7722853
commit
7373d357aa
@ -196,7 +196,7 @@ int API::getUserDetails()
|
|||||||
|
|
||||||
Json::Value root;
|
Json::Value root;
|
||||||
std::istringstream json_stream(json);
|
std::istringstream json_stream(json);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
json_stream >> root;
|
json_stream >> root;
|
||||||
} catch (const Json::Exception& exc) {
|
} catch (const Json::Exception& exc) {
|
||||||
@ -307,7 +307,7 @@ gameDetails API::getGameDetails(const std::string& game_name, const unsigned int
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
json_stream >> root;
|
json_stream >> root;
|
||||||
} catch (Json::Exception exc) {
|
} catch (Json::Exception& exc) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
std::cerr << "DEBUG INFO (API::getGameDetails)" << std::endl << json << std::endl;
|
std::cerr << "DEBUG INFO (API::getGameDetails)" << std::endl << json << std::endl;
|
||||||
#endif
|
#endif
|
||||||
@ -322,7 +322,7 @@ gameDetails API::getGameDetails(const std::string& game_name, const unsigned int
|
|||||||
game.title = root["game"]["title"].asString();
|
game.title = root["game"]["title"].asString();
|
||||||
game.icon = root["game"]["icon"].asString();
|
game.icon = root["game"]["icon"].asString();
|
||||||
std::vector<std::string> membernames = root["game"].getMemberNames();
|
std::vector<std::string> membernames = root["game"].getMemberNames();
|
||||||
|
|
||||||
// Installer details
|
// Installer details
|
||||||
// Create a list of installers from JSON
|
// Create a list of installers from JSON
|
||||||
std::vector<gameFileInfo> installers;
|
std::vector<gameFileInfo> installers;
|
||||||
|
@ -290,7 +290,7 @@ std::vector<gameItem> Website::getFreeGames()
|
|||||||
std::cout << exc.what();
|
std::cout << exc.what();
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
std::cerr << "DEBUG INFO (Website::getFreeGames)" << std::endl << root << std::endl;
|
std::cerr << "DEBUG INFO (Website::getFreeGames)" << std::endl << root << std::endl;
|
||||||
#endif
|
#endif
|
||||||
@ -617,7 +617,7 @@ std::vector<wishlistItem> Website::getWishlistItems()
|
|||||||
try {
|
try {
|
||||||
// Parse JSON
|
// Parse JSON
|
||||||
response_stream >> root;
|
response_stream >> root;
|
||||||
} catch(const Json::Exception exc) {
|
} catch(const Json::Exception& exc) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
std::cerr << "DEBUG INFO (Website::getWishlistItems)" << std::endl << response << std::endl;
|
std::cerr << "DEBUG INFO (Website::getWishlistItems)" << std::endl << response << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user