From 7287690a41ab762c0c4efe02632efeaf3e0187b4 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 20 Oct 2017 14:50:19 +0200 Subject: Change signature of call/construct Change-Id: I139a7a31651d9a2ea46ced88978ac4633294bc60 Reviewed-by: Erik Verbruggen --- src/qml/jsruntime/qv4jscall_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/qml/jsruntime/qv4jscall_p.h') diff --git a/src/qml/jsruntime/qv4jscall_p.h b/src/qml/jsruntime/qv4jscall_p.h index bf85d75fdf..75f866706b 100644 --- a/src/qml/jsruntime/qv4jscall_p.h +++ b/src/qml/jsruntime/qv4jscall_p.h @@ -93,7 +93,7 @@ struct JSCall { ptr->setArgc(argc); memcpy(ptr->args, argv, argc*sizeof(Value)); } - JSCall(const Scope &scope, ReturnedValue function, Value *argv, int argc, Value *thisObject = 0) + JSCall(const Scope &scope, ReturnedValue function, const Value *argv, int argc, const Value *thisObject = 0) { int size = int(offsetof(QV4::CallData, args)/sizeof(QV4::Value)) + argc; ptr = reinterpret_cast(scope.engine->jsStackTop); @@ -115,11 +115,11 @@ struct JSCall { } ReturnedValue call() const { - return static_cast(ptr->function).call(ptr); + return static_cast(ptr->function).call(&ptr->thisObject, ptr->args, ptr->argc()); } ReturnedValue callAsConstructor() const { - return static_cast(ptr->function).construct(ptr); + return static_cast(ptr->function).construct(ptr->args, ptr->argc()); } CallData *ptr; -- cgit v1.2.3