aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvmemetaobject.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2016-05-18 16:21:11 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2016-05-19 09:20:46 +0000
commita5626dbe6769af2ccf7089d2ae7ef58f76f75ea5 (patch)
tree826bf53fd4824b6c6064885f1b52a47f496a71db /src/qml/qml/qqmlvmemetaobject.cpp
parent7d5ce4284badb1fd54a67938039d0a1908f34370 (diff)
Minor VME meta object context handling cleanup
There is no need to go through the public QQmlContext in order to retrieve the QQmlContextData the QQmlVMEMetaObject is associated with. Change-Id: I648454c217fa594d4017c3af67848eacab55edfc Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlvmemetaobject.cpp')
-rw-r--r--src/qml/qml/qqmlvmemetaobject.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/qml/qml/qqmlvmemetaobject.cpp b/src/qml/qml/qqmlvmemetaobject.cpp
index ef00a582ef..3ded302681 100644
--- a/src/qml/qml/qqmlvmemetaobject.cpp
+++ b/src/qml/qml/qqmlvmemetaobject.cpp
@@ -1143,10 +1143,7 @@ bool QQmlVMEMetaObject::aliasTarget(int index, QObject **target, int *coreIndex,
return false;
QQmlVMEMetaData::AliasData *d = metaData->aliasData() + (index - propOffset() - metaData->propertyCount);
- QQmlContext *context = ctxt->asQQmlContext();
- QQmlContextPrivate *ctxtPriv = QQmlContextPrivate::get(context);
-
- *target = ctxtPriv->data->idValues[d->contextIdx].data();
+ *target = ctxt->idValues[d->contextIdx].data();
if (!*target)
return false;