diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2022-03-22 14:01:13 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-03-24 14:33:05 +0100 |
commit | 7dba80af8715297a7a946e11c1961c6268897171 (patch) | |
tree | f7c3d973371522b0eb656955debef9ae8f1735f2 /src/qml/qml/qqmlpropertyvalidator_p.h | |
parent | 185760fa44f5b62f1ed3f10a458f4bc38072768f (diff) |
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 <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 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<QV4::ExecutableCompilationUnit> &compilationUnit); + QQmlPropertyValidator(QQmlEnginePrivate *enginePrivate, const QQmlImports *imports, const QQmlRefPointer<QV4::ExecutableCompilationUnit> &compilationUnit); QVector<QQmlError> validate(); @@ -92,7 +92,7 @@ private: QQmlEnginePrivate *enginePrivate; QQmlRefPointer<QV4::ExecutableCompilationUnit> compilationUnit; - const QQmlImports &imports; + const QQmlImports *imports; const QV4::CompiledData::Unit *qmlUnit; const QQmlPropertyCacheVector &propertyCaches; |