diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2014-11-20 08:56:36 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-12-29 13:57:28 +0100 |
commit | 65953304a2775e69c7edd46b780aa39f769d32ac (patch) | |
tree | 901458eda459550eee285c34b511f04307710561 /src/qml/qml/qqmlopenmetaobject.cpp | |
parent | 802a996693386791688a937a9b15ac6da278b5f0 (diff) |
Prepare for QQmlPropertyCache to become available in QJSEngine
The cache is seemingly tied to QQmlEngine, but it isn't. A lot of
times a QQmlEngine parameter is unnecessarily dragged around and the
engine member is option as well as it turns out.
Change-Id: Iffd2a5046e9785249689ebfcbc8a0ad509f76aea
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlopenmetaobject.cpp')
-rw-r--r-- | src/qml/qml/qqmlopenmetaobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlopenmetaobject.cpp b/src/qml/qml/qqmlopenmetaobject.cpp index f4d050a1d7..9715fdc85d 100644 --- a/src/qml/qml/qqmlopenmetaobject.cpp +++ b/src/qml/qml/qqmlopenmetaobject.cpp @@ -119,7 +119,7 @@ int QQmlOpenMetaObjectType::createProperty(const QByteArray &name) QQmlOpenMetaObject *omo = *it; *static_cast<QMetaObject *>(omo) = *d->mem; if (d->cache) - d->cache->update(d->engine, omo); + d->cache->update(omo); ++it; } |