aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4jscall_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-10-20 14:50:19 +0200
committerLars Knoll <lars.knoll@qt.io>2017-11-07 09:00:23 +0000
commit7287690a41ab762c0c4efe02632efeaf3e0187b4 (patch)
treeb5f1a04748b005119ee4d2f0693f50d80c8ec5c2 /src/qml/jsruntime/qv4jscall_p.h
parentfb84c9b4f860ee71d0584207f4c0f1d70d96755c (diff)
Change signature of call/construct
Change-Id: I139a7a31651d9a2ea46ced88978ac4633294bc60 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4jscall_p.h')
-rw-r--r--src/qml/jsruntime/qv4jscall_p.h6
1 files changed, 3 insertions, 3 deletions
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<CallData *>(scope.engine->jsStackTop);
@@ -115,11 +115,11 @@ struct JSCall {
}
ReturnedValue call() const {
- return static_cast<FunctionObject &>(ptr->function).call(ptr);
+ return static_cast<FunctionObject &>(ptr->function).call(&ptr->thisObject, ptr->args, ptr->argc());
}
ReturnedValue callAsConstructor() const {
- return static_cast<FunctionObject &>(ptr->function).construct(ptr);
+ return static_cast<FunctionObject &>(ptr->function).construct(ptr->args, ptr->argc());
}
CallData *ptr;