diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2014-11-11 18:08:20 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-11-15 00:32:45 +0100 |
commit | ad342b052473a8ec8c693591a8a882313ccd7d62 (patch) | |
tree | 502172a96bd56cda918a5552017f95308ee15f9f /src/qml/jsruntime/qv4context.cpp | |
parent | d4d92ab002bab0fdb8ddbac4babad260ed75d090 (diff) |
Changed MemoryManager::alloc<T> to return Heap::T* instead of T*
Change-Id: Iede1ba624d1313fbe2f8e5e979e936f1f32efdc9
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4context.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<CallContext> *ExecutionContext::newCallContext(FunctionObject *function Heap::WithContext *ExecutionContext::newWithContext(Object *with) { - return d()->engine->memoryManager->alloc<WithContext>(d()->engine, with)->getPointer()->d(); + return d()->engine->memoryManager->alloc<WithContext>(d()->engine, with); } Heap::CatchContext *ExecutionContext::newCatchContext(String *exceptionVarName, const ValueRef exceptionValue) { - return d()->engine->memoryManager->alloc<CatchContext>(d()->engine, exceptionVarName, exceptionValue)->getPointer()->d(); + return d()->engine->memoryManager->alloc<CatchContext>(d()->engine, exceptionVarName, exceptionValue); } Heap::CallContext *ExecutionContext::newQmlContext(FunctionObject *f, Object *qml) |