Fix a bug related to if block

This commit is contained in:
miloyip 2015-05-08 15:22:28 +08:00
parent dec1225c07
commit 5f548ac9a1

View File

@ -232,10 +232,11 @@ 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")) {
patternProperties_ = new PatternProperty[v->MemberCount()]; patternProperties_ = new PatternProperty[v->MemberCount()];