aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlpropertyresolver_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-03-10 12:09:00 +0100
committerUlf Hermann <ulf.hermann@qt.io>2022-03-14 16:44:35 +0100
commit9de2b11a7033a1969156277bafa848b5c178baa1 (patch)
treee9d349e5165350b50065663e3b9efadd94738cb8 /src/qml/qml/qqmlpropertyresolver_p.h
parente5246cafffb93f69a49c133210390c253fcb71f2 (diff)
Make most QQmlPropertyData const
You really should not mess with that after creating the property cache. Change-Id: I070200772475bb67f539dbbd85a298020b14ca79 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlpropertyresolver_p.h')
-rw-r--r--src/qml/qml/qqmlpropertyresolver_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlpropertyresolver_p.h b/src/qml/qml/qqmlpropertyresolver_p.h
index 5f807b6009..922a9adc5e 100644
--- a/src/qml/qml/qqmlpropertyresolver_p.h
+++ b/src/qml/qml/qqmlpropertyresolver_p.h
@@ -63,7 +63,7 @@ struct Q_QML_EXPORT QQmlPropertyResolver
: cache(cache)
{}
- QQmlPropertyData *property(int index) const
+ const QQmlPropertyData *property(int index) const
{
return cache->property(index);
}
@@ -73,11 +73,11 @@ struct Q_QML_EXPORT QQmlPropertyResolver
IgnoreRevision
};
- QQmlPropertyData *property(const QString &name, bool *notInRevision = nullptr,
+ const QQmlPropertyData *property(const QString &name, bool *notInRevision = nullptr,
RevisionCheck check = CheckRevision) const;
// This code must match the semantics of QQmlPropertyPrivate::findSignalByName
- QQmlPropertyData *signal(const QString &name, bool *notInRevision) const;
+ const QQmlPropertyData *signal(const QString &name, bool *notInRevision) const;
QQmlPropertyCache::ConstPtr cache;
};