Skip to content

Commit 83ea25e

Browse files
committed
Make OurFeatures ctor as default.
Please review suggested changes.
1 parent e3b3599 commit 83ea25e

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/lib_json/json_reader.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ bool Reader::good() const {
889889
class OurFeatures {
890890
public:
891891
static OurFeatures all();
892-
OurFeatures();
892+
OurFeatures() = default;
893893
bool allowComments_;
894894
bool strictRoot_;
895895
bool allowDroppedNullPlaceholders_;
@@ -904,16 +904,6 @@ class OurFeatures {
904904
// exact copy of Implementation of class Features
905905
// ////////////////////////////////
906906

907-
OurFeatures::OurFeatures()
908-
: allowComments_(true), strictRoot_(false)
909-
, allowDroppedNullPlaceholders_(false), allowNumericKeys_(false)
910-
, allowSingleQuotes_(false)
911-
, failIfExtra_(false)
912-
, allowSpecialFloats_(false)
913-
, stackLimit_(1000)
914-
{
915-
}
916-
917907
OurFeatures OurFeatures::all() { return OurFeatures(); }
918908

919909
// Implementation of class Reader

0 commit comments

Comments
 (0)