clang-format

This commit is contained in:
qiwei 2024-10-06 15:40:01 +08:00
parent 30ce8e1fa7
commit 5d634a519d

View File

@ -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);
}