diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-06-24 17:20:24 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-06-24 17:25:17 +0200 |
commit | 56de8b41f24fda23eaba34dd6e034cf409966b17 (patch) | |
tree | 6a86e4790eccf1c3de2cec60aae4d40293e9ed23 /src/qml/qml/qqmlpropertycache_p.h | |
parent | 9d3d29d623a9e2c6067fc2cebf6d84dc7320f7f1 (diff) |
QQmlPropertyCache: Don't retrieve metaObjectOffset() twice
Change-Id: I233fc368a26d7a571a32829dcd6149096dfe2e07
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlpropertycache_p.h')
-rw-r--r-- | src/qml/qml/qqmlpropertycache_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlpropertycache_p.h b/src/qml/qml/qqmlpropertycache_p.h index 460e6d9a85..8a958f7659 100644 --- a/src/qml/qml/qqmlpropertycache_p.h +++ b/src/qml/qml/qqmlpropertycache_p.h @@ -415,7 +415,7 @@ bool QQmlPropertyCache::isAllowedInRevision(QQmlPropertyData *data) const Q_ASSERT(offset >= 0); Q_ASSERT(offset < allowedRevisionCache.length()); - const QTypeRevision allowed = allowedRevisionCache[data->metaObjectOffset()]; + const QTypeRevision allowed = allowedRevisionCache[offset]; if (requested.hasMajorVersion()) { if (requested.majorVersion() > allowed.majorVersion()) |