diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-06-10 14:37:21 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-06-18 16:42:36 +0000 |
commit | d4801fc76a0dff43abd3c4f46fb34553c8c5efd1 (patch) | |
tree | 26049030d9682df4f418a0f70e8190b102106337 /src/qml/qml/qqmlcontextwrapper_p.h | |
parent | d475e72dc469dc6d442a36588e19a3e7eca48394 (diff) |
Smaller cleanup in the context wrapper
Change-Id: If9f8139cdb67bd7a1179d8b1ab18bde04e3b2fbb
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlcontextwrapper_p.h')
-rw-r--r-- | src/qml/qml/qqmlcontextwrapper_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcontextwrapper_p.h b/src/qml/qml/qqmlcontextwrapper_p.h index c569d09cd7..9bd95efaa6 100644 --- a/src/qml/qml/qqmlcontextwrapper_p.h +++ b/src/qml/qml/qqmlcontextwrapper_p.h @@ -95,7 +95,9 @@ struct Q_QML_EXPORT QmlContextWrapper : Object static ReturnedValue urlScope(ExecutionEngine *v4, const QUrl &); static QQmlContextData *callingContext(ExecutionEngine *v4); - static void takeContextOwnership(const Value &qmlglobal); + void takeContextOwnership() { + d()->ownsContext = true; + } inline QObject *getScopeObject() const { return d()->scopeObject; } inline QQmlContextData *getContext() const { return d()->context; } |