mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-10 03:29:59 +01:00
Fix a bug related to if block
This commit is contained in:
parent
dec1225c07
commit
5f548ac9a1
@ -232,9 +232,10 @@ public:
|
||||
if (properties && properties->IsObject())
|
||||
for (ConstMemberIterator itr = properties->MemberBegin(); itr != properties->MemberEnd(); ++itr) {
|
||||
SizeType index;
|
||||
if (FindPropertyIndex(itr->name, &index))
|
||||
if (FindPropertyIndex(itr->name, &index)) {
|
||||
properties_[index].schema = new BaseSchema(itr->value);
|
||||
properties_[index].typeless = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (const ValueType* v = GetMember(value, "patternProperties")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user