From 930c8f186ac07f3462de41bcba6cf9d881e79fc2 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 10 Jan 2024 09:22:19 +0100 Subject: QtQml: Use CompiledData::CompilationUnit in more places We rarely actually need the executable CU, and where we need it, we can dynamically create or retrieve it from the engine. To that end, store all the CUs in the same container in the engine. Change-Id: I0b786048c578ac4f41ae4aee601da850fa400f2e Reviewed-by: Qt CI Bot Reviewed-by: Fabian Kosmale --- src/qml/qml/qqmlpropertyvalidator_p.h | 6 ++++-- 1 file changed, 4 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 d7fea687f9..75787fcf68 100644 --- a/src/qml/qml/qqmlpropertyvalidator_p.h +++ b/src/qml/qml/qqmlpropertyvalidator_p.h @@ -28,7 +28,9 @@ 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(); @@ -58,7 +60,7 @@ private: } QQmlEnginePrivate *enginePrivate; - QQmlRefPointer compilationUnit; + QQmlRefPointer compilationUnit; const QQmlImports *imports; const QV4::CompiledData::Unit *qmlUnit; const QQmlPropertyCacheVector &propertyCaches; -- cgit v1.2.3