mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-12 10:03:51 +01:00
clang-format
This commit is contained in:
parent
30ce8e1fa7
commit
5d634a519d
@ -1439,9 +1439,10 @@ bool OurReader::readObject(Token& token) {
|
||||
return true;
|
||||
name.clear();
|
||||
if (tokenName.type_ == tokenString) {
|
||||
name = String(tokenName.start_ + 1, tokenName.end_-1);
|
||||
//if (!decodeString(tokenName, name))
|
||||
// return recoverFromError(tokenObjectEnd);
|
||||
name = String(tokenName.start_ + 1, tokenName.end_ - 1);
|
||||
/*if (!decodeString(tokenName, name))
|
||||
return recoverFromError(tokenObjectEnd);
|
||||
*/
|
||||
} else if (tokenName.type_ == tokenNumber && features_.allowNumericKeys_) {
|
||||
Value numberName;
|
||||
if (!decodeNumber(tokenName, numberName))
|
||||
@ -1901,7 +1902,7 @@ CharReader* CharReaderBuilder::newCharReader() const {
|
||||
features.rejectDupKeys_ = settings_["rejectDupKeys"].asBool();
|
||||
features.allowSpecialFloats_ = settings_["allowSpecialFloats"].asBool();
|
||||
features.skipBom_ = settings_["skipBom"].asBool();
|
||||
features.skipEscapeString_ = settings_["skipEscapeString"].asBool();
|
||||
features.skipEscapeString_ = settings_["skipEscapeString"].asBool();
|
||||
return new OurCharReader(collectComments, features);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user