diff options
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index e17b1d7585..59b23bebbf 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -328,7 +328,7 @@ ReturnedValue FunctionPrototype::method_apply(SimpleCallContext *ctx) ScopedValue arg(scope, ctx->argument(1)); - Scoped<Object> arr(scope, arg); + ScopedObject arr(scope, arg); quint32 len; if (!arr) { @@ -338,7 +338,7 @@ ReturnedValue FunctionPrototype::method_apply(SimpleCallContext *ctx) return Encode::undefined(); } } else { - len = ArrayPrototype::getLength(ctx, arr.getPointer()); + len = ArrayPrototype::getLength(ctx, arr); } ScopedCallData callData(scope, len); |
