diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2022-03-10 12:09:00 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-03-14 16:44:35 +0100 |
commit | 9de2b11a7033a1969156277bafa848b5c178baa1 (patch) | |
tree | e9d349e5165350b50065663e3b9efadd94738cb8 /src/qml/qml/qqmlpropertyvalidator_p.h | |
parent | e5246cafffb93f69a49c133210390c253fcb71f2 (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/qqmlpropertyvalidator_p.h')
-rw-r--r-- | src/qml/qml/qqmlpropertyvalidator_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlpropertyvalidator_p.h b/src/qml/qml/qqmlpropertyvalidator_p.h index 0927b0be78..b8dc699dad 100644 --- a/src/qml/qml/qqmlpropertyvalidator_p.h +++ b/src/qml/qml/qqmlpropertyvalidator_p.h @@ -73,10 +73,10 @@ private: int objectIndex, const QV4::CompiledData::Binding *instantiatingBinding, bool populatingValueTypeGroupProperty = false) const; QQmlError validateLiteralBinding( - const QQmlPropertyCache::ConstPtr &propertyCache, QQmlPropertyData *property, + const QQmlPropertyCache::ConstPtr &propertyCache, const QQmlPropertyData *property, const QV4::CompiledData::Binding *binding) const; QQmlError validateObjectBinding( - QQmlPropertyData *property, const QString &propertyName, + const QQmlPropertyData *property, const QString &propertyName, const QV4::CompiledData::Binding *binding) const; bool canCoerce(QMetaType to, QQmlPropertyCache::ConstPtr fromMo) const; |