From 3e3e9343737ec18ef0579c0bb70c5fecdd3169f0 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 15 Jun 2015 15:52:51 +0200 Subject: Add some typesafety Even though the goal is to get rid of the contextwrapper, this helps in the meantime. Change-Id: I234ef39f74fb0eee78710884de6a1c90763bce74 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4script_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/jsruntime/qv4script_p.h') diff --git a/src/qml/jsruntime/qv4script_p.h b/src/qml/jsruntime/qv4script_p.h index 4c8644e8c2..7591df4769 100644 --- a/src/qml/jsruntime/qv4script_p.h +++ b/src/qml/jsruntime/qv4script_p.h @@ -87,9 +87,9 @@ struct ContextStateSaver { namespace Heap { struct QmlBindingWrapper : Heap::FunctionObject { - QmlBindingWrapper(QV4::ExecutionContext *scope, Function *f, QV4::Object *qml); + QmlBindingWrapper(QV4::ExecutionContext *scope, Function *f, QmlContextWrapper *qml); // Constructor for QML functions and signal handlers, resulting binding wrapper is not callable! - QmlBindingWrapper(QV4::ExecutionContext *scope, QV4::Object *qml); + QmlBindingWrapper(QV4::ExecutionContext *scope, QmlContextWrapper *qml); Pointer qml; }; -- cgit v1.2.3