diff options
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 247f36784b..2d89366e74 100644 --- a/src/qml/jsruntime/qv4booleanobject.cpp +++ b/src/qml/jsruntime/qv4booleanobject.cpp @@ -50,15 +50,15 @@ void Heap::BooleanCtor::init(QV4::ExecutionContext *scope) Heap::FunctionObject::init(scope, QStringLiteral("Boolean")); } -ReturnedValue BooleanCtor::callAsConstructor(const Managed *that, CallData *callData) +ReturnedValue BooleanCtor::callAsConstructor(const FunctionObject *that, const Value *argv, int argc) { - bool n = callData->argc() ? callData->args[0].toBoolean() : false; + bool n = argc ? argv[0].toBoolean() : false; return Encode(that->engine()->newBooleanObject(n)); } -ReturnedValue BooleanCtor::call(const Managed *, CallData *callData) +ReturnedValue BooleanCtor::call(const FunctionObject *, const Value *, const Value *argv, int argc) { - bool value = callData->argc() ? callData->args[0].toBoolean() : 0; + bool value = argc ? argv[0].toBoolean() : 0; return Encode(value); } |