diff options
author | Erik Verbruggen <[email protected]> | 2017-09-14 14:54:42 +0200 |
---|---|---|
committer | Erik Verbruggen <[email protected]> | 2017-09-19 09:44:33 +0000 |
commit | 042aa2eb0e55616fc754d0d71246efb531ca6dfe (patch) | |
tree | f48118a1f8564b4c4cbadc0ebf291d56d59dbb70 /src/qml/jsruntime/qv4booleanobject.cpp | |
parent | b7ddcdad876cf0a46aa14a0f78ee8b3e4f685c19 (diff) |
Change CallData::argc to be a QV4::Value
Instead of mimicking a Value. This makes sure that argc now stays
correct even when anything on Value changes.
Most of the change is mechanical: replace callData->argc by
callData->argc().
Change-Id: I521831ae1ffb3966bad6589c18d7a373e13439d7
Reviewed-by: Lars Knoll <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4booleanobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4booleanobject.cpp | 4 |
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); } |