aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4context.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-08-21 09:10:21 +0200
committerLars Knoll <lars.knoll@theqtcompany.com>2015-09-09 14:28:39 +0000
commitf766ae49abd9e87a7f056165d8699315343ceaee (patch)
tree789b1cffb6be17bd0a0bfb262cafc9a0447d0eac /src/qml/jsruntime/qv4context.cpp
parent6f9a090aa5c21916d19e20ebea16ff46690b7346 (diff)
Smaller cleanup
Move the takeContextOwnership method over to the QmlContext. Change-Id: I9330b31a0cb079b1c7e68a00236a69e25ed2c5af Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4context.cpp')
-rw-r--r--src/qml/jsruntime/qv4context.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp
index 1f561e5f58..710c9e0ea2 100644
--- a/src/qml/jsruntime/qv4context.cpp
+++ b/src/qml/jsruntime/qv4context.cpp
@@ -570,3 +570,8 @@ QQmlContextData *QmlContext::qmlContext() const
{
return d()->qml->context;
}
+
+void QmlContext::takeContextOwnership() {
+ d()->qml->ownsContext = true;
+}
+