diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-08-21 15:00:09 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-02 17:27:36 +0200 |
commit | da2f24d8e5c32fe4ed45dcb89aa357465f85fc1e (patch) | |
tree | 490d63078e83280990fc8c1b416d2d17600ea7d2 /src/qml/jsruntime/qv4script.cpp | |
parent | 29f946cdad013d759aad05cbd22f40d0c152d6f3 (diff) |
move methods to create a new context into the ExecutionContext class
This avoids one indirection when calling the methods and cleans up
the engine a bit.
Change-Id: I426f41e23f6a7262af95b9807b00920530fef642
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp index 7f8e9e205e..80cca830f5 100644 --- a/src/qml/jsruntime/qv4script.cpp +++ b/src/qml/jsruntime/qv4script.cpp @@ -74,7 +74,7 @@ struct QmlBindingWrapper : FunctionObject needsActivation = function->needsActivation(); defineReadonlyProperty(scope->engine->id_length, Value::fromInt32(1)); - qmlContext = scope->engine->newQmlContext(this, qml); + qmlContext = scope->engine->current->newQmlContext(this, qml); scope->engine->popContext(); } |