Simple changes to Reader initialization, from Chromium folks. (I do not think this was submitted as a bug.)

This commit is contained in:
Christopher Dunn 2011-06-21 21:56:54 +00:00
parent 468564b3fe
commit ac5df77bbc

View File

@ -1,4 +1,4 @@
// Copyright 2007-2010 Baptiste Lepilleur // Copyright 2007-2011 Baptiste Lepilleur
// Distributed under MIT license, or public domain if desired and // Distributed under MIT license, or public domain if desired and
// recognized in your jurisdiction. // recognized in your jurisdiction.
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
@ -80,13 +80,31 @@ containsNewLine( Reader::Location begin,
// ////////////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////////////
Reader::Reader() Reader::Reader()
: features_( Features::all() ) : errors_(),
document_(),
begin_(),
end_(),
current_(),
lastValueEnd_(),
lastValue_(),
commentsBefore_(),
features_( Features::all() ),
collectComments_()
{ {
} }
Reader::Reader( const Features &features ) Reader::Reader( const Features &features )
: features_( features ) : errors_(),
document_(),
begin_(),
end_(),
current_(),
lastValueEnd_(),
lastValue_(),
commentsBefore_(),
features_( features ),
collectComments_()
{ {
} }