diff options
| author | Lars Knoll <lars.knoll@digia.com> | 2013-09-27 17:04:42 +0200 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-30 08:05:51 +0200 |
| commit | c0ec918787068fcf269925b13a34115ff77c3126 (patch) | |
| tree | 9e1a511baf5f7e1ff53a102294b28a839d2f10f5 /src/qml/jsruntime/qv4functionobject.cpp | |
| parent | e57c2c8a0adef8949f69195573d149237814bed1 (diff) | |
Remove some uses of raw Object pointers
Change-Id: I7c715f33d197ebbf6f0c00040099b27ed7221d42
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
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); |
