aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4booleanobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4booleanobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4booleanobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4booleanobject.cpp b/src/qml/jsruntime/qv4booleanobject.cpp
index d74750fa8c..d4e02e0356 100644
--- a/src/qml/jsruntime/qv4booleanobject.cpp
+++ b/src/qml/jsruntime/qv4booleanobject.cpp
@@ -52,13 +52,13 @@ void Heap::BooleanCtor::init(QV4::ExecutionContext *scope)
ReturnedValue BooleanCtor::construct(const Managed *that, CallData *callData)
{
- bool n = callData->argc ? callData->args[0].toBoolean() : false;
+ bool n = callData->argc() ? callData->args[0].toBoolean() : false;
return Encode(that->engine()->newBooleanObject(n));
}
ReturnedValue BooleanCtor::call(const Managed *, CallData *callData)
{
- bool value = callData->argc ? callData->args[0].toBoolean() : 0;
+ bool value = callData->argc() ? callData->args[0].toBoolean() : 0;
return Encode(value);
}