diff options
Diffstat (limited to 'src/qml/jsruntime/qv4jsonobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4jsonobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4jsonobject.cpp b/src/qml/jsruntime/qv4jsonobject.cpp index 911fc7337c..e7905974df 100644 --- a/src/qml/jsruntime/qv4jsonobject.cpp +++ b/src/qml/jsruntime/qv4jsonobject.cpp @@ -1002,7 +1002,7 @@ QV4::ReturnedValue JsonObject::fromJsonObject(ExecutionEngine *engine, const QJs ScopedObject o(scope, engine->newObject()); ScopedString s(scope); ScopedValue v(scope); - for (QJsonObject::const_iterator it = object.begin(); it != object.end(); ++it) { + for (QJsonObject::const_iterator it = object.begin(), cend = object.end(); it != cend; ++it) { v = fromJsonValue(engine, it.value()); o->put((s = engine->newString(it.key())), v); } |