From ad7db62b8a078575586854786016f76d9bddb818 Mon Sep 17 00:00:00 2001 From: Chris Punches Date: Fri, 9 Jun 2017 00:09:42 -0400 Subject: [PATCH] fixed some typos --- .idea/workspace.xml | 75 +++++++++++-------------------------- src/loaders/JSON_Loader.cpp | 4 +- src/loaders/JSON_Loader.h | 1 + 3 files changed, 24 insertions(+), 56 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 8fa8469..2795eb2 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -15,42 +15,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -638,12 +604,12 @@ - + - @@ -656,6 +622,7 @@ + @@ -664,7 +631,7 @@ - + @@ -1166,23 +1133,23 @@ - - - - - - - - - - + + + + + + + + + + \ No newline at end of file diff --git a/src/loaders/JSON_Loader.cpp b/src/loaders/JSON_Loader.cpp index 99703ad..7b0e6db 100644 --- a/src/loaders/JSON_Loader.cpp +++ b/src/loaders/JSON_Loader.cpp @@ -35,14 +35,14 @@ int JSON_Loader::load_json_file( std::string filename, bool verbose ) if (! parsingSuccessful ) { - std::cerr << "Failed to parse " << filename << ":\n\t" << json_reader.getFormattedErrorMessages(); + std::cerr << "Failed to parse '" << filename << "':\n\t" << json_reader.getFormattedErrorMessages(); // exit with failure signal return 1; } else { // if in verbose mode, give the user an "it worked" message if (verbose) { - std::cout << "Parsed " << filename << " with " << this->json_root.size() << " elements." << std::endl; + std::cout << "Parsed '" << filename << "' with " << this->json_root.size() << " element(s)." << std::endl; } } // exit successfully diff --git a/src/loaders/JSON_Loader.h b/src/loaders/JSON_Loader.h index 8823cdf..02fb509 100644 --- a/src/loaders/JSON_Loader.h +++ b/src/loaders/JSON_Loader.h @@ -14,6 +14,7 @@ class JSON_Loader { private: Json::Value json_root; + public: // constructor JSON_Loader();