diff options
author | Lars Knoll <[email protected]> | 2013-09-25 10:09:26 +0200 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-09-28 13:33:08 +0200 |
commit | 0f2cf9074d4f0220f5c707eed478f99334814789 (patch) | |
tree | 685ea2295b8728b3545523e2625a4cf65f39b9ee /src/qml/jsruntime/qv4booleanobject.cpp | |
parent | 1ef957834bf9040ccd001fa6d80e483b9b21452c (diff) |
Fix CallContext to not hold arguments on the C stack anymore
Change-Id: I35f46cce4f243d4b8b2bac9244f8fc26836f413b
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4booleanobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4booleanobject.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4booleanobject.cpp b/src/qml/jsruntime/qv4booleanobject.cpp index be801a67c2..7e0831232c 100644 --- a/src/qml/jsruntime/qv4booleanobject.cpp +++ b/src/qml/jsruntime/qv4booleanobject.cpp @@ -77,10 +77,10 @@ void BooleanPrototype::init(ExecutionEngine *engine, const Value &ctor) ReturnedValue BooleanPrototype::method_toString(SimpleCallContext *ctx) { bool result; - if (ctx->thisObject.isBoolean()) { - result = ctx->thisObject.booleanValue(); + if (ctx->callData->thisObject.isBoolean()) { + result = ctx->callData->thisObject.booleanValue(); } else { - BooleanObject *thisObject = ctx->thisObject.asBooleanObject(); + BooleanObject *thisObject = ctx->callData->thisObject.asBooleanObject(); if (!thisObject) ctx->throwTypeError(); result = thisObject->value.booleanValue(); @@ -91,7 +91,7 @@ ReturnedValue BooleanPrototype::method_toString(SimpleCallContext *ctx) ReturnedValue BooleanPrototype::method_valueOf(SimpleCallContext *ctx) { - BooleanObject *thisObject = ctx->thisObject.asBooleanObject(); + BooleanObject *thisObject = ctx->callData->thisObject.asBooleanObject(); if (!thisObject) ctx->throwTypeError(); |