From 4a9ed3de7d92809cf575f245f55d4f422b4983c3 Mon Sep 17 00:00:00 2001 From: Oleg Shparber Date: Wed, 31 Dec 2014 10:40:16 -0800 Subject: Use QV4::ScopedArrayObject typedef instead of actual type Change-Id: I975536745ac6c264aca074f84d223fbec7682d3d Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4arrayobject.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/qml/jsruntime/qv4arrayobject.cpp') diff --git a/src/qml/jsruntime/qv4arrayobject.cpp b/src/qml/jsruntime/qv4arrayobject.cpp index d388875e3b..e2ff0b46e2 100644 --- a/src/qml/jsruntime/qv4arrayobject.cpp +++ b/src/qml/jsruntime/qv4arrayobject.cpp @@ -51,7 +51,7 @@ ReturnedValue ArrayCtor::construct(Managed *m, CallData *callData) { ExecutionEngine *v4 = m->engine(); Scope scope(v4); - Scoped a(scope, v4->newArrayObject()); + ScopedArrayObject a(scope, v4->newArrayObject()); uint len; if (callData->argc == 1 && callData->args[0].isNumber()) { bool ok; @@ -400,7 +400,7 @@ ReturnedValue ArrayPrototype::method_slice(CallContext *ctx) if (!o) return Encode::undefined(); - Scoped result(scope, ctx->d()->engine->newArrayObject()); + ScopedArrayObject result(scope, ctx->d()->engine->newArrayObject()); uint len = o->getLength(); double s = ScopedValue(scope, ctx->argument(0))->toInteger(); uint start; @@ -457,7 +457,7 @@ ReturnedValue ArrayPrototype::method_splice(CallContext *ctx) return Encode::undefined(); uint len = instance->getLength(); - Scoped newArray(scope, ctx->d()->engine->newArrayObject()); + ScopedArrayObject newArray(scope, ctx->d()->engine->newArrayObject()); double rs = ScopedValue(scope, ctx->argument(0))->toInteger(); uint start; @@ -793,7 +793,7 @@ ReturnedValue ArrayPrototype::method_map(CallContext *ctx) if (!callback) return ctx->engine()->throwTypeError(); - Scoped a(scope, ctx->d()->engine->newArrayObject()); + ScopedArrayObject a(scope, ctx->d()->engine->newArrayObject()); a->arrayReserve(len); a->setArrayLengthUnchecked(len); @@ -830,7 +830,7 @@ ReturnedValue ArrayPrototype::method_filter(CallContext *ctx) if (!callback) return ctx->engine()->throwTypeError(); - Scoped a(scope, ctx->d()->engine->newArrayObject()); + ScopedArrayObject a(scope, ctx->d()->engine->newArrayObject()); a->arrayReserve(len); ScopedValue selected(scope); -- cgit v1.2.3