Add default value of stackLimit couple of places

stackLimit default value is missing at two places.Adding them.
This commit is contained in:
Gaurav 2015-09-21 18:05:15 +05:30
parent cc5cdb565c
commit e3b35992f8

View File

@ -910,6 +910,7 @@ OurFeatures::OurFeatures()
, allowSingleQuotes_(false)
, failIfExtra_(false)
, allowSpecialFloats_(false)
, stackLimit_(1000)
{
}
@ -1979,6 +1980,7 @@ void CharReaderBuilder::strictMode(Json::Value* settings)
(*settings)["allowDroppedNullPlaceholders"] = false;
(*settings)["allowNumericKeys"] = false;
(*settings)["allowSingleQuotes"] = false;
(*settings)["stackLimit"] = 1000;
(*settings)["failIfExtra"] = true;
(*settings)["rejectDupKeys"] = true;
(*settings)["allowSpecialFloats"] = false;