diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-12-07 17:41:33 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-01-03 15:58:37 +0100 |
commit | 7db241834aa9c5070a0f13914cf6cd46b453d0ff (patch) | |
tree | 2548197c9e27d63f008218f72e986f10539f727e /src/qml/qml/qqmlpropertyvalidator_p.h | |
parent | d74e931f3fc2587ac6d1e2930acbbe54ea5be2b5 (diff) |
Unify PropertyCache refcounting
We should not keep plain QQmlPropertyCache pointers around. Also
optimize self-assignment of QQmlRefPointer.
Change-Id: I0e30b4ce29bb6b7acf288a9dc7b515d0e8f4ddfe
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlpropertyvalidator_p.h b/src/qml/qml/qqmlpropertyvalidator_p.h index 554a7faff3..52b7699f6c 100644 --- a/src/qml/qml/qqmlpropertyvalidator_p.h +++ b/src/qml/qml/qqmlpropertyvalidator_p.h @@ -79,7 +79,7 @@ private: QQmlPropertyData *property, const QString &propertyName, const QV4::CompiledData::Binding *binding) const; - bool canCoerce(QMetaType to, QQmlPropertyCache *fromMo) const; + bool canCoerce(QMetaType to, QQmlRefPointer<QQmlPropertyCache> fromMo) const; Q_REQUIRED_RESULT QVector<QQmlError> recordError( const QV4::CompiledData::Location &location, const QString &description) const; |