diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2014-12-30 17:06:02 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2015-01-08 12:34:25 +0100 |
commit | 486965a12e4b11ba6d5ab4578cd199e8f7ec4cb0 (patch) | |
tree | 922d5e8384b32ddb953cccdc1c2995fa0d46eceb /src/qml/qml/qqmlcomponent.cpp | |
parent | bb29bebc8a205e33a4a0e9450040a78f4b3914d9 (diff) |
Remove v8engine pointer from QQmlV4Function
Change-Id: I68ddd79b8866ef9b8628a2eab1118d3ee3d72759
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcomponent.cpp')
-rw-r--r-- | src/qml/qml/qqmlcomponent.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlcomponent.cpp b/src/qml/qml/qqmlcomponent.cpp index 894d02f71c..115046f543 100644 --- a/src/qml/qml/qqmlcomponent.cpp +++ b/src/qml/qml/qqmlcomponent.cpp @@ -1361,9 +1361,9 @@ void QQmlComponent::incubateObject(QQmlV4Function *args) mode = QQmlIncubator::AsynchronousIfNested; } - QQmlComponentExtension *e = componentExtension(args->engine()); + QQmlComponentExtension *e = componentExtension(args->v4engine()->v8Engine); - QV4::Scoped<QV4::QmlIncubatorObject> r(scope, v4->memoryManager->alloc<QV4::QmlIncubatorObject>(args->engine(), mode)); + QV4::Scoped<QV4::QmlIncubatorObject> r(scope, v4->memoryManager->alloc<QV4::QmlIncubatorObject>(args->v4engine()->v8Engine, mode)); QV4::ScopedObject p(scope, e->incubationProto.value()); r->setPrototype(p); |