From 353402344d0bbf20bc0003324ab6e8d7f67ee90d Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 11 Nov 2014 17:27:49 +0100 Subject: Replaced more usages of Returned with Heap::T* Change-Id: I451128ee71610bfeb71139c28da89a00a8209ec6 Reviewed-by: Lars Knoll --- src/qml/jsruntime/qv4context.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/qml/jsruntime/qv4context.cpp') diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp index d360ccdc57..86a5535d04 100644 --- a/src/qml/jsruntime/qv4context.cpp +++ b/src/qml/jsruntime/qv4context.cpp @@ -81,22 +81,22 @@ Returned *ExecutionContext::newCallContext(FunctionObject *function return Returned::create(c); } -Returned *ExecutionContext::newWithContext(Object *with) +Heap::WithContext *ExecutionContext::newWithContext(Object *with) { - return d()->engine->memoryManager->alloc(d()->engine, with); + return d()->engine->memoryManager->alloc(d()->engine, with)->getPointer()->d(); } -Returned *ExecutionContext::newCatchContext(String *exceptionVarName, const ValueRef exceptionValue) +Heap::CatchContext *ExecutionContext::newCatchContext(String *exceptionVarName, const ValueRef exceptionValue) { - return d()->engine->memoryManager->alloc(d()->engine, exceptionVarName, exceptionValue); + return d()->engine->memoryManager->alloc(d()->engine, exceptionVarName, exceptionValue)->getPointer()->d(); } -Returned *ExecutionContext::newQmlContext(FunctionObject *f, Object *qml) +Heap::CallContext *ExecutionContext::newQmlContext(FunctionObject *f, Object *qml) { Scope scope(this); Scoped c(scope, static_cast(d()->engine->memoryManager->allocManaged(requiredMemoryForExecutionContect(f, 0)))); new (c->d()) Heap::CallContext(d()->engine, qml, f); - return c.asReturned(); + return c->d(); } -- cgit v1.2.3