aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v4/qv4functionobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/v4/qv4functionobject.cpp')
-rw-r--r--src/qml/qml/v4/qv4functionobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/v4/qv4functionobject.cpp b/src/qml/qml/v4/qv4functionobject.cpp
index 09ee5f1aa4..5363be6142 100644
--- a/src/qml/qml/v4/qv4functionobject.cpp
+++ b/src/qml/qml/v4/qv4functionobject.cpp
@@ -253,7 +253,7 @@ Value FunctionPrototype::method_apply(SimpleCallContext *ctx)
if (Object *arr = arg.asObject()) {
quint32 len = arr->get(ctx, ctx->engine->id_length).toUInt32();
for (quint32 i = 0; i < len; ++i) {
- Value a = arr->getIndexed(ctx, i);
+ Value a = arr->getIndexed(i);
args.append(a);
}
} else if (!(arg.isUndefined() || arg.isNull())) {