From 7dba80af8715297a7a946e11c1961c6268897171 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 22 Mar 2022 14:01:13 +0100 Subject: QtQml: Uncruftify QQmlImports QQmlImports is a refcounted datastructure. Therefore, use QQmlRefPointer for it, and avoid all the pointless indirection. Also, make the flags type safe and document the mutability of the import namespaces. Change-Id: I54a0db42b2b7cdfb516e9f90c2264edfa800bfe6 Reviewed-by: Fabian Kosmale --- src/qml/qml/qqmlpropertyvalidator_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/qml/qqmlpropertyvalidator_p.h') diff --git a/src/qml/qml/qqmlpropertyvalidator_p.h b/src/qml/qml/qqmlpropertyvalidator_p.h index b8dc699dad..67c18b66ad 100644 --- a/src/qml/qml/qqmlpropertyvalidator_p.h +++ b/src/qml/qml/qqmlpropertyvalidator_p.h @@ -64,7 +64,7 @@ class QQmlPropertyValidator { Q_DECLARE_TR_FUNCTIONS(QQmlPropertyValidator) public: - QQmlPropertyValidator(QQmlEnginePrivate *enginePrivate, const QQmlImports &imports, const QQmlRefPointer &compilationUnit); + QQmlPropertyValidator(QQmlEnginePrivate *enginePrivate, const QQmlImports *imports, const QQmlRefPointer &compilationUnit); QVector validate(); @@ -92,7 +92,7 @@ private: QQmlEnginePrivate *enginePrivate; QQmlRefPointer compilationUnit; - const QQmlImports &imports; + const QQmlImports *imports; const QV4::CompiledData::Unit *qmlUnit; const QQmlPropertyCacheVector &propertyCaches; -- cgit v1.2.3