forked from qt-creator/qt-creator
Fix Krazy warnings about values or keys iteration in various places.
Change-Id: Iced108cc7fc74f6ce5501c59db7090fea21cb87a Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -252,13 +252,15 @@ void JsonSchema::enterNestedTypeSchema()
|
||||
|
||||
QStringList JsonSchema::properties(JsonObjectValue *v) const
|
||||
{
|
||||
typedef QHash<QString, JsonValue *>::ConstIterator MemberConstIterator;
|
||||
|
||||
QStringList all;
|
||||
|
||||
if (JsonObjectValue *ov = getObjectValue(kProperties, v)) {
|
||||
foreach (const QString &property, ov->members().keys()) {
|
||||
if (hasPropertySchema(property))
|
||||
all.append(property);
|
||||
}
|
||||
const MemberConstIterator cend = ov->members().constEnd();
|
||||
for (MemberConstIterator it = ov->members().constBegin(); it != cend; ++it)
|
||||
if (hasPropertySchema(it.key()))
|
||||
all.append(it.key());
|
||||
}
|
||||
|
||||
if (JsonObjectValue *base = resolveBase(v))
|
||||
|
||||
Reference in New Issue
Block a user