From 95b3092ce4b7156adc8a265907b2175ceff5a96f Mon Sep 17 00:00:00 2001 From: Jordan Bayles Date: Fri, 28 Jun 2019 09:50:46 -0700 Subject: [PATCH] Fix comments on Json Reader There have been multiple discussions of the inaccurate comments in the Json Reader class. This patch just updates those comments. --- src/lib_json/json_reader.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index 7e1bca4..bbff7ef 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp @@ -870,7 +870,8 @@ bool Reader::pushError(const Value& value, bool Reader::good() const { return errors_.empty(); } -// exact copy of Features +// Originally copied from the Features class (now deprecated), used internally +// for features implementation. class OurFeatures { public: static OurFeatures all(); @@ -885,15 +886,13 @@ public: size_t stackLimit_; }; // OurFeatures -// exact copy of Implementation of class Features -// //////////////////////////////// - OurFeatures OurFeatures::all() { return {}; } // Implementation of class Reader // //////////////////////////////// -// exact copy of Reader, renamed to OurReader +// Originally copied from the Reader class (now deprecated), used internally +// for implementing JSON reading. class OurReader { public: typedef char Char;