Make OurFeatures ctor as default.
authorGaurav <g.gupta@samsung.com>
Wed, 23 Sep 2015 04:12:26 +0000 (09:42 +0530)
committerGaurav <g.gupta@samsung.com>
Wed, 23 Sep 2015 04:12:26 +0000 (09:42 +0530)
Please review suggested changes.

src/lib_json/json_reader.cpp

index e9ed8ee..a2b7885 100644 (file)
@@ -889,7 +889,7 @@ bool Reader::good() const {
 class OurFeatures {
 public:
   static OurFeatures all();
-  OurFeatures();
+  OurFeatures() = default;
   bool allowComments_;
   bool strictRoot_;
   bool allowDroppedNullPlaceholders_;
@@ -904,16 +904,6 @@ public:
 // 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(); }
 
 // Implementation of class Reader