From 9b25000cb41b97c9c9f49a542c9b82cf25c032db Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 20 Oct 2017 16:11:37 +0200 Subject: Get rid of the implicit cast operator to a CallData Change-Id: I1c35fbf8f7355bc2393ae931f99e591b800f2f45 Reviewed-by: Erik Verbruggen --- src/qml/jsruntime/qv4functionobject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/jsruntime/qv4functionobject.cpp') diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index e7bd4f7c06..208af838a7 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -74,13 +74,13 @@ static ReturnedValue jsCallWrapper(const QV4::FunctionObject *f, const Value *th { Scope scope(f->engine()); JSCallData callData(scope, f->asReturnedValue(), argv, argc, thisObject); - return f->vtable()->call(f, callData); + return f->vtable()->call(f, callData.callData(f)); } ReturnedValue jsConstructWrapper(const QV4::FunctionObject *f, const Value *argv, int argc) { Scope scope(f->engine()); JSCallData callData(scope, f->asReturnedValue(), argv, argc); - return f->vtable()->construct(f, callData); + return f->vtable()->construct(f, callData.callData(f)); } -- cgit v1.2.3