@@ -85,12 +85,9 @@ bool Reader::containsNewLine(Reader::Location begin, Reader::Location end) {
8585// Class Reader
8686// //////////////////////////////////////////////////////////////////
8787
88- Reader::Reader ()
89- : features_(Features::all()) {}
88+ Reader::Reader () : features_(Features::all()) {}
9089
91- Reader::Reader (const Features& features)
92- : features_(features) {
93- }
90+ Reader::Reader (const Features& features) : features_(features) {}
9491
9592bool Reader::parse (const std::string& document,
9693 Value& root,
@@ -110,7 +107,7 @@ bool Reader::parse(std::istream& is, Value& root, bool collectComments) {
110107 // Since String is reference-counted, this at least does not
111108 // create an extra copy.
112109 String doc;
113- std::getline (is, doc, static_cast <char >EOF);
110+ std::getline (is, doc, static_cast <char > EOF);
114111 return parse (doc.data (), doc.data () + doc.size (), root, collectComments);
115112}
116113
@@ -895,7 +892,7 @@ OurFeatures OurFeatures::all() { return {}; }
895892class OurReader {
896893public:
897894 using Char = char ;
898- using Location = const Char *;
895+ using Location = const Char*;
899896 struct StructuredError {
900897 ptrdiff_t offset_start;
901898 ptrdiff_t offset_limit;
@@ -996,7 +993,7 @@ class OurReader {
996993 static String normalizeEOL (Location begin, Location end);
997994 static bool containsNewLine (Location begin, Location end);
998995
999- using Nodes = std::stack<Value *>;
996+ using Nodes = std::stack<Value*>;
1000997 Nodes nodes_;
1001998 Errors errors_;
1002999 String document_;
@@ -1022,9 +1019,8 @@ bool OurReader::containsNewLine(OurReader::Location begin,
10221019}
10231020
10241021OurReader::OurReader (OurFeatures const & features)
1025- : begin_(), end_(), current_(), lastValueEnd_(),
1026- lastValue_ (), features_(features), collectComments_() {
1027- }
1022+ : begin_(), end_(), current_(), lastValueEnd_(), lastValue_(),
1023+ features_ (features), collectComments_() {}
10281024
10291025bool OurReader::parse (const char * beginDoc,
10301026 const char * endDoc,
0 commit comments