From ad342b052473a8ec8c693591a8a882313ccd7d62 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 11 Nov 2014 18:08:20 +0100 Subject: Changed MemoryManager::alloc to return Heap::T* instead of T* Change-Id: Iede1ba624d1313fbe2f8e5e979e936f1f32efdc9 Reviewed-by: Lars Knoll --- src/qml/jsruntime/qv4context.cpp | 4 ++-- 1 file changed, 2 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 86a5535d04..603b76630c 100644 --- a/src/qml/jsruntime/qv4context.cpp +++ b/src/qml/jsruntime/qv4context.cpp @@ -83,12 +83,12 @@ Returned *ExecutionContext::newCallContext(FunctionObject *function Heap::WithContext *ExecutionContext::newWithContext(Object *with) { - return d()->engine->memoryManager->alloc(d()->engine, with)->getPointer()->d(); + return d()->engine->memoryManager->alloc(d()->engine, with); } Heap::CatchContext *ExecutionContext::newCatchContext(String *exceptionVarName, const ValueRef exceptionValue) { - return d()->engine->memoryManager->alloc(d()->engine, exceptionVarName, exceptionValue)->getPointer()->d(); + return d()->engine->memoryManager->alloc(d()->engine, exceptionVarName, exceptionValue); } Heap::CallContext *ExecutionContext::newQmlContext(FunctionObject *f, Object *qml) -- cgit v1.2.3