aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4arrayobject.cpp
diff options
context:
space:
mode:
authorOleg Shparber <trollixx@gmail.com>2014-12-31 10:40:16 -0800
committerOleg Shparber <trollixx@gmail.com>2015-01-03 23:29:51 +0100
commit4a9ed3de7d92809cf575f245f55d4f422b4983c3 (patch)
treedf242fa9aa2895cf451096d2384e8f04ce1d0c70 /src/qml/jsruntime/qv4arrayobject.cpp
parent21d481c209692ec73ab6b6bc43e6977fc2f8c2fc (diff)
Use QV4::ScopedArrayObject typedef instead of actual type
Change-Id: I975536745ac6c264aca074f84d223fbec7682d3d Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4arrayobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4arrayobject.cpp10
1 files changed, 5 insertions, 5 deletions
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<ArrayObject> 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<ArrayObject> 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<ArrayObject> 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<ArrayObject> 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<ArrayObject> a(scope, ctx->d()->engine->newArrayObject());
+ ScopedArrayObject a(scope, ctx->d()->engine->newArrayObject());
a->arrayReserve(len);
ScopedValue selected(scope);