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:
Friedemann Kleint
2013-03-14 14:19:23 +01:00
parent 9b89cad5fe
commit efe98de840
5 changed files with 24 additions and 15 deletions

View File

@@ -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))