aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4object.cpp
diff options
context:
space:
mode:
authorLars Knoll <[email protected]>2013-09-11 14:47:34 +0200
committerThe Qt Project <[email protected]>2013-09-18 13:13:23 +0200
commitd6837e9ca301e7b6c792e3d24db14fb7bab2db60 (patch)
treeb0afdc2e224d8f28ec6f9fb516d0ad2cb63c4908 /src/qml/jsruntime/qv4object.cpp
parent002e6105f61269f1474de878ccdb26205e5b226e (diff)
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 <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4object.cpp')
-rw-r--r--src/qml/jsruntime/qv4object.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/qml/jsruntime/qv4object.cpp b/src/qml/jsruntime/qv4object.cpp
index 288bf8b8d7..8b68b4811a 100644
--- a/src/qml/jsruntime/qv4object.cpp
+++ b/src/qml/jsruntime/qv4object.cpp
@@ -135,7 +135,7 @@ Value Object::getValue(const Value &thisObject, const Property *p, PropertyAttri
if (!getter)
return Value::undefinedValue();
- ValueScope scope(getter->engine());
+ Scope scope(getter->engine());
ScopedCallData callData(scope, 0);
callData->thisObject = thisObject;
return Value::fromReturnedValue(getter->call(callData));
@@ -145,7 +145,7 @@ void Object::putValue(Property *pd, PropertyAttributes attrs, const Value &value
{
if (attrs.isAccessor()) {
if (pd->set) {
- ValueScope scope(pd->set->engine());
+ Scope scope(pd->set->engine());
ScopedCallData callData(scope, 1);
callData->args[0] = value;
callData->thisObject = Value::fromObject(this);
@@ -169,7 +169,7 @@ void Object::putValue(Property *pd, PropertyAttributes attrs, const Value &value
void Object::inplaceBinOp(ExecutionContext *ctx, BinOp op, String *name, const ValueRef rhs)
{
- ValueScope scope(ctx);
+ Scope scope(ctx);
ScopedValue v(scope, get(name));
ScopedValue result(scope, op(v, rhs));
put(name, result);
@@ -177,7 +177,7 @@ void Object::inplaceBinOp(ExecutionContext *ctx, BinOp op, String *name, const V
void Object::inplaceBinOp(ExecutionContext *ctx, BinOp op, const ValueRef index, const ValueRef rhs)
{
- ValueScope scope(ctx);
+ Scope scope(ctx);
uint idx = index->asArrayIndex();
if (idx < UINT_MAX) {
bool hasProperty = false;
@@ -193,7 +193,7 @@ void Object::inplaceBinOp(ExecutionContext *ctx, BinOp op, const ValueRef index,
void Object::inplaceBinOp(ExecutionContext *ctx, BinOpContext op, String *name, const ValueRef rhs)
{
- ValueScope scope(ctx);
+ Scope scope(ctx);
ScopedValue v(scope, get(name));
ScopedValue result(scope, op(ctx, v, rhs));
put(name, result);
@@ -201,7 +201,7 @@ void Object::inplaceBinOp(ExecutionContext *ctx, BinOpContext op, String *name,
void Object::inplaceBinOp(ExecutionContext *ctx, BinOpContext op, const ValueRef index, const ValueRef rhs)
{
- ValueScope scope(ctx);
+ Scope scope(ctx);
uint idx = index->asArrayIndex();
if (idx < UINT_MAX) {
bool hasProperty = false;
@@ -776,7 +776,7 @@ void Object::internalPut(String *name, const Value &value)
if (pd && attrs.isAccessor()) {
assert(pd->setter() != 0);
- ValueScope scope(engine());
+ Scope scope(engine());
ScopedCallData callData(scope, 1);
callData->args[0] = value;
callData->thisObject = Value::fromObject(this);
@@ -855,7 +855,7 @@ void Object::internalPutIndexed(uint index, const Value &value)
if (pd && attrs.isAccessor()) {
assert(pd->setter() != 0);
- ValueScope scope(engine());
+ Scope scope(engine());
ScopedCallData callData(scope, 1);
callData->args[0] = value;
callData->thisObject = Value::fromObject(this);
@@ -1137,7 +1137,7 @@ void Object::copyArrayData(Object *other)
Value Object::arrayIndexOf(Value v, uint fromIndex, uint endIndex, ExecutionContext *ctx, Object *o)
{
- ValueScope scope(engine());
+ Scope scope(engine());
ScopedValue value(scope);
if (o->protoHasArray() || o->arrayAttributes) {