Commit 5f548ac9 authored by miloyip's avatar miloyip

Fix a bug related to if block

parent dec1225c
...@@ -232,10 +232,11 @@ public: ...@@ -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()];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment