Fix -Wcatch-value for GCC 8

This commit is contained in:
Sude 2018-05-14 12:29:51 +03:00
parent 8ca7722853
commit 7373d357aa
2 changed files with 5 additions and 5 deletions

View File

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

View File

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