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/qv4context.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/qml/jsruntime/qv4context.cpp') diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp index e223bc0da7..2ce4d85e8c 100644 --- a/src/qml/jsruntime/qv4context.cpp +++ b/src/qml/jsruntime/qv4context.cpp @@ -41,6 +41,7 @@ #include "qv4function_p.h" #include "qv4errorobject_p.h" #include "qv4string_p.h" +#include "private/qqmlcontextwrapper_p.h" using namespace QV4; @@ -92,7 +93,7 @@ Heap::CatchContext *ExecutionContext::newCatchContext(String *exceptionVarName, return d()->engine->memoryManager->alloc(d()->engine, exceptionVarName, exceptionValue); } -Heap::QmlContext *ExecutionContext::newQmlContext(Object *qml) +Heap::QmlContext *ExecutionContext::newQmlContext(QmlContextWrapper *qml) { return d()->engine->memoryManager->alloc(this, qml); } @@ -165,7 +166,7 @@ Heap::CatchContext::CatchContext(ExecutionEngine *engine, QV4::String *exception this->exceptionValue = exceptionValue; } -Heap::QmlContext::QmlContext(QV4::ExecutionContext *outer, QV4::Object *qml) +Heap::QmlContext::QmlContext(QV4::ExecutionContext *outer, QV4::QmlContextWrapper *qml) : Heap::ExecutionContext(outer->engine(), Heap::ExecutionContext::Type_QmlContext) { strictMode = false; -- cgit v1.2.3