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())
|
if (properties && properties->IsObject())
|
||||||
for (ConstMemberIterator itr = properties->MemberBegin(); itr != properties->MemberEnd(); ++itr) {
|
for (ConstMemberIterator itr = properties->MemberBegin(); itr != properties->MemberEnd(); ++itr) {
|
||||||
SizeType index;
|
SizeType index;
|
||||||
if (FindPropertyIndex(itr->name, &index))
|
if (FindPropertyIndex(itr->name, &index)) {
|
||||||
properties_[index].schema = new BaseSchema(itr->value);
|
properties_[index].schema = new BaseSchema(itr->value);
|
||||||
properties_[index].typeless = false;
|
properties_[index].typeless = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (const ValueType* v = GetMember(value, "patternProperties")) {
|
if (const ValueType* v = GetMember(value, "patternProperties")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user