mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-13 10:22:55 +01:00
Make OurFeatures ctor as default.
Please review suggested changes.
This commit is contained in:
parent
e3b35992f8
commit
83ea25e5e2
@ -889,7 +889,7 @@ bool Reader::good() const {
|
|||||||
class OurFeatures {
|
class OurFeatures {
|
||||||
public:
|
public:
|
||||||
static OurFeatures all();
|
static OurFeatures all();
|
||||||
OurFeatures();
|
OurFeatures() = default;
|
||||||
bool allowComments_;
|
bool allowComments_;
|
||||||
bool strictRoot_;
|
bool strictRoot_;
|
||||||
bool allowDroppedNullPlaceholders_;
|
bool allowDroppedNullPlaceholders_;
|
||||||
@ -904,16 +904,6 @@ public:
|
|||||||
// exact copy of Implementation of class Features
|
// exact copy of Implementation of class Features
|
||||||
// ////////////////////////////////
|
// ////////////////////////////////
|
||||||
|
|
||||||
OurFeatures::OurFeatures()
|
|
||||||
: allowComments_(true), strictRoot_(false)
|
|
||||||
, allowDroppedNullPlaceholders_(false), allowNumericKeys_(false)
|
|
||||||
, allowSingleQuotes_(false)
|
|
||||||
, failIfExtra_(false)
|
|
||||||
, allowSpecialFloats_(false)
|
|
||||||
, stackLimit_(1000)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
OurFeatures OurFeatures::all() { return OurFeatures(); }
|
OurFeatures OurFeatures::all() { return OurFeatures(); }
|
||||||
|
|
||||||
// Implementation of class Reader
|
// Implementation of class Reader
|
||||||
|
Loading…
Reference in New Issue
Block a user