From f9fda643ab7aa1a66e4816382f0e66499818f42a Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 6 Sep 2013 12:44:12 +0200 Subject: Change signature of call/construct() to take a pointer to a CallData Change-Id: I5467aadba083e4b01fb0a7170946695207033680 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4booleanobject.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/qml/jsruntime/qv4booleanobject.cpp') diff --git a/src/qml/jsruntime/qv4booleanobject.cpp b/src/qml/jsruntime/qv4booleanobject.cpp index 25c105210a..6b77db3ca7 100644 --- a/src/qml/jsruntime/qv4booleanobject.cpp +++ b/src/qml/jsruntime/qv4booleanobject.cpp @@ -51,15 +51,15 @@ BooleanCtor::BooleanCtor(ExecutionContext *scope) vtbl = &static_vtbl; } -Value BooleanCtor::construct(Managed *m, const CallData &d) +Value BooleanCtor::construct(Managed *m, CallData *callData) { - bool n = d.argc ? d.args[0].toBoolean() : false; + bool n = callData->argc ? callData->args[0].toBoolean() : false; return Value::fromObject(m->engine()->newBooleanObject(Value::fromBoolean(n))); } -Value BooleanCtor::call(Managed *, const CallData &d) +Value BooleanCtor::call(Managed *, CallData *callData) { - bool value = d.argc ? d.args[0].toBoolean() : 0; + bool value = callData->argc ? callData->args[0].toBoolean() : 0; return Value::fromBoolean(value); } -- cgit v1.2.3