diff options
author | Lars Knoll <[email protected]> | 2014-05-06 09:23:59 +0200 |
---|---|---|
committer | Simon Hausmann <[email protected]> | 2014-07-22 13:49:11 +0200 |
commit | 9744e8bd423d528165f5e78704c6e017852b8e9a (patch) | |
tree | b1210199c698d3b09d80b9267d9aaab2b12ac5ab /src/qml/jsruntime/qv4booleanobject.cpp | |
parent | f3f31957b79c55f3e076473b0d4c41c8872535b3 (diff) |
Convert ExecutionContext to new storage scheme
Change-Id: I9fcc13da5360f37cef3149b114ed9263b9b74281
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4booleanobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4booleanobject.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/qml/jsruntime/qv4booleanobject.cpp b/src/qml/jsruntime/qv4booleanobject.cpp index b2851abd7d..f1b4bbc901 100644 --- a/src/qml/jsruntime/qv4booleanobject.cpp +++ b/src/qml/jsruntime/qv4booleanobject.cpp @@ -80,26 +80,26 @@ void BooleanPrototype::init(ExecutionEngine *engine, ObjectRef ctor) ReturnedValue BooleanPrototype::method_toString(CallContext *ctx) { bool result; - if (ctx->callData->thisObject.isBoolean()) { - result = ctx->callData->thisObject.booleanValue(); + if (ctx->d()->callData->thisObject.isBoolean()) { + result = ctx->d()->callData->thisObject.booleanValue(); } else { Scope scope(ctx); - Scoped<BooleanObject> thisObject(scope, ctx->callData->thisObject); + Scoped<BooleanObject> thisObject(scope, ctx->d()->callData->thisObject); if (!thisObject) return ctx->throwTypeError(); result = thisObject->value().booleanValue(); } - return Encode(ctx->engine->newString(QLatin1String(result ? "true" : "false"))); + return Encode(ctx->d()->engine->newString(QLatin1String(result ? "true" : "false"))); } ReturnedValue BooleanPrototype::method_valueOf(CallContext *ctx) { - if (ctx->callData->thisObject.isBoolean()) - return ctx->callData->thisObject.asReturnedValue(); + if (ctx->d()->callData->thisObject.isBoolean()) + return ctx->d()->callData->thisObject.asReturnedValue(); Scope scope(ctx); - Scoped<BooleanObject> thisObject(scope, ctx->callData->thisObject); + Scoped<BooleanObject> thisObject(scope, ctx->d()->callData->thisObject); if (!thisObject) return ctx->throwTypeError(); |