From 9db2b8f2b02f212ea756206d233ee1b05571548d Mon Sep 17 00:00:00 2001 From: Sude Date: Mon, 6 Jul 2015 06:59:54 +0300 Subject: [PATCH] Use getFormattedErrorMessages instead of deprecated getFormatedErrorMessages --- src/api.cpp | 12 ++++++------ src/downloader.cpp | 12 ++++++------ src/util.cpp | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/api.cpp b/src/api.cpp index 1ee483a..28af5b1 100644 --- a/src/api.cpp +++ b/src/api.cpp @@ -90,7 +90,7 @@ int API::getAPIConfig() #ifdef DEBUG std::cerr << "DEBUG INFO (API::getAPIConfig)" << std::endl << json << std::endl; #endif - this->setError(jsonparser->getFormatedErrorMessages()); + this->setError(jsonparser->getFormattedErrorMessages()); res = 0; } delete jsonparser; @@ -195,7 +195,7 @@ int API::getUserDetails() #ifdef DEBUG std::cerr << "DEBUG INFO (API::getUserDetails)" << std::endl << json << std::endl; #endif - this->setError(jsonparser->getFormatedErrorMessages()); + this->setError(jsonparser->getFormattedErrorMessages()); res = 0; } delete jsonparser; @@ -554,7 +554,7 @@ gameDetails API::getGameDetails(const std::string& game_name, const unsigned int #ifdef DEBUG std::cerr << "DEBUG INFO (API::getGameDetails)" << std::endl << json << std::endl; #endif - this->setError(jsonparser->getFormatedErrorMessages()); + this->setError(jsonparser->getFormattedErrorMessages()); } delete jsonparser; } @@ -591,7 +591,7 @@ std::string API::getInstallerLink(const std::string& game_name, const std::strin #ifdef DEBUG std::cerr << "DEBUG INFO (API::getInstallerLink)" << std::endl << json << std::endl; #endif - this->setError(jsonparser->getFormatedErrorMessages()); + this->setError(jsonparser->getFormattedErrorMessages()); } delete jsonparser; } @@ -627,7 +627,7 @@ std::string API::getExtraLink(const std::string& game_name, const std::string& i #ifdef DEBUG std::cerr << "DEBUG INFO (API::getExtraLink)" << std::endl << json << std::endl; #endif - this->setError(jsonparser->getFormatedErrorMessages()); + this->setError(jsonparser->getFormattedErrorMessages()); } delete jsonparser; } @@ -676,7 +676,7 @@ std::string API::getXML(const std::string& game_name, const std::string& id) #ifdef DEBUG std::cerr << "DEBUG INFO (API::getXML)" << std::endl << json << std::endl; #endif - this->setError(jsonparser->getFormatedErrorMessages()); + this->setError(jsonparser->getFormattedErrorMessages()); } delete jsonparser; } diff --git a/src/downloader.cpp b/src/downloader.cpp index 893bac9..b86026e 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -2111,7 +2111,7 @@ std::vector Downloader::getGames() #ifdef DEBUG std::cerr << "DEBUG INFO (Downloader::getGames)" << std::endl << response << std::endl; #endif - std::cout << jsonparser->getFormatedErrorMessages(); + std::cout << jsonparser->getFormattedErrorMessages(); delete jsonparser; if (!response.empty()) { @@ -2198,7 +2198,7 @@ std::vector Downloader::getGames() #ifdef DEBUG std::cerr << "DEBUG INFO (Downloader::getGames)" << std::endl << gameinfo << std::endl; #endif - std::cout << jsonparser->getFormatedErrorMessages(); + std::cout << jsonparser->getFormattedErrorMessages(); delete jsonparser; exit(1); } @@ -2236,7 +2236,7 @@ std::vector Downloader::getFreeGames() #ifdef DEBUG std::cerr << "DEBUG INFO (Downloader::getFreeGames)" << std::endl << json << std::endl; #endif - std::cout << jsonparser->getFormatedErrorMessages(); + std::cout << jsonparser->getFormattedErrorMessages(); delete jsonparser; exit(1); } @@ -2270,7 +2270,7 @@ Json::Value Downloader::getGameDetailsJSON(const std::string& gameid) #ifdef DEBUG std::cerr << "DEBUG INFO (Downloader::getGameDetailsJSON)" << std::endl << json << std::endl; #endif - std::cout << jsonparser->getFormatedErrorMessages(); + std::cout << jsonparser->getFormattedErrorMessages(); delete jsonparser; exit(1); } @@ -2937,7 +2937,7 @@ int Downloader::loadGameDetailsCache() { res = 2; std::cout << "Failed to parse cache" << std::endl; - std::cout << jsonparser->getFormatedErrorMessages() << std::endl; + std::cout << jsonparser->getFormattedErrorMessages() << std::endl; } delete jsonparser; if (json) @@ -3204,7 +3204,7 @@ void Downloader::showWishlist() #ifdef DEBUG std::cerr << "DEBUG INFO (Downloader::showWishlist)" << std::endl << response << std::endl; #endif - std::cout << jsonparser->getFormatedErrorMessages(); + std::cout << jsonparser->getFormattedErrorMessages(); delete jsonparser; exit(1); } diff --git a/src/util.cpp b/src/util.cpp index 40e5208..1ee814b 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -276,7 +276,7 @@ int Util::getGameSpecificConfig(std::string gamename, gameSpecificConfig* conf, else { std::cout << "Failed to parse game specific config" << std::endl; - std::cout << jsonparser->getFormatedErrorMessages() << std::endl; + std::cout << jsonparser->getFormattedErrorMessages() << std::endl; } delete jsonparser; if (json)