From d6837e9ca301e7b6c792e3d24db14fb7bab2db60 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 11 Sep 2013 14:47:34 +0200 Subject: Rename QV4::ValueScope to QV4::Scope The class is going to be used all over the place, so let's give it a short name :) Change-Id: If61543cb2c885e7fbb95c8fc4d0e870097c352ed Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4arrayobject.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/qml/jsruntime/qv4arrayobject.cpp') diff --git a/src/qml/jsruntime/qv4arrayobject.cpp b/src/qml/jsruntime/qv4arrayobject.cpp index e8cb5284c8..d0eae3d241 100644 --- a/src/qml/jsruntime/qv4arrayobject.cpp +++ b/src/qml/jsruntime/qv4arrayobject.cpp @@ -138,7 +138,7 @@ Value ArrayPrototype::method_toString(SimpleCallContext *ctx) QV4::Object *o = ctx->thisObject.toObject(ctx); FunctionObject *f = o->get(ctx->engine->newString("join")).asFunctionObject(); if (f) { - ValueScope scope(ctx); + Scope scope(ctx); ScopedCallData d(scope, 0); d->thisObject = ctx->thisObject; return Value::fromReturnedValue(f->call(d)); @@ -547,7 +547,7 @@ Value ArrayPrototype::method_unshift(SimpleCallContext *ctx) Value ArrayPrototype::method_indexOf(SimpleCallContext *ctx) { - ValueScope scope(ctx); + Scope scope(ctx); Object *instance = ctx->thisObject.toObject(ctx); uint len = getLength(ctx, instance); @@ -587,7 +587,7 @@ Value ArrayPrototype::method_indexOf(SimpleCallContext *ctx) Value ArrayPrototype::method_lastIndexOf(SimpleCallContext *ctx) { - ValueScope scope(ctx); + Scope scope(ctx); Object *instance = ctx->thisObject.toObject(ctx); uint len = getLength(ctx, instance); @@ -627,7 +627,7 @@ Value ArrayPrototype::method_lastIndexOf(SimpleCallContext *ctx) Value ArrayPrototype::method_every(SimpleCallContext *ctx) { - ValueScope scope(ctx); + Scope scope(ctx); Object *instance = ctx->thisObject.toObject(ctx); uint len = getLength(ctx, instance); @@ -660,7 +660,7 @@ Value ArrayPrototype::method_every(SimpleCallContext *ctx) Value ArrayPrototype::method_some(SimpleCallContext *ctx) { - ValueScope scope(ctx); + Scope scope(ctx); Object *instance = ctx->thisObject.toObject(ctx); uint len = getLength(ctx, instance); @@ -690,7 +690,7 @@ Value ArrayPrototype::method_some(SimpleCallContext *ctx) Value ArrayPrototype::method_forEach(SimpleCallContext *ctx) { - ValueScope scope(ctx); + Scope scope(ctx); Object *instance = ctx->thisObject.toObject(ctx); uint len = getLength(ctx, instance); @@ -718,7 +718,7 @@ Value ArrayPrototype::method_forEach(SimpleCallContext *ctx) Value ArrayPrototype::method_map(SimpleCallContext *ctx) { - ValueScope scope(ctx); + Scope scope(ctx); Object *instance = ctx->thisObject.toObject(ctx); uint len = getLength(ctx, instance); @@ -754,7 +754,7 @@ Value ArrayPrototype::method_map(SimpleCallContext *ctx) Value ArrayPrototype::method_filter(SimpleCallContext *ctx) { - ValueScope scope(ctx); + Scope scope(ctx); Object *instance = ctx->thisObject.toObject(ctx); uint len = getLength(ctx, instance); @@ -793,7 +793,7 @@ Value ArrayPrototype::method_filter(SimpleCallContext *ctx) Value ArrayPrototype::method_reduce(SimpleCallContext *ctx) { - ValueScope scope(ctx); + Scope scope(ctx); Object *instance = ctx->thisObject.toObject(ctx); uint len = getLength(ctx, instance); @@ -839,7 +839,7 @@ Value ArrayPrototype::method_reduce(SimpleCallContext *ctx) Value ArrayPrototype::method_reduceRight(SimpleCallContext *ctx) { - ValueScope scope(ctx); + Scope scope(ctx); Object *instance = ctx->thisObject.toObject(ctx); uint len = getLength(ctx, instance); -- cgit v1.2.3