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
@ -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
|
||||||
|
@ -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