From fc3f603d0067c34356a838b652b94042dc264cd5 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 9 Apr 2020 11:35:02 +0200 Subject: Prepare for new members in QQmlPrivate::CachedQmlUnit Pass the address of the entire structure through to the compiler, so that when adding new members we can easily access them. Change-Id: I5da75ba4e64d3e0e750a3ff3df4edbb88cdb6937 Reviewed-by: Fabian Kosmale --- src/qml/jsruntime/qv4engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/jsruntime/qv4engine.cpp') diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp index 51e63f3608..dc94129cb0 100644 --- a/src/qml/jsruntime/qv4engine.cpp +++ b/src/qml/jsruntime/qv4engine.cpp @@ -1918,9 +1918,9 @@ ReturnedValue ExecutionEngine::global() QQmlRefPointer ExecutionEngine::compileModule(const QUrl &url) { QQmlMetaType::CachedUnitLookupError cacheError = QQmlMetaType::CachedUnitLookupError::NoError; - if (const QV4::CompiledData::Unit *cachedUnit = QQmlMetaType::findCachedCompilationUnit(url, &cacheError)) { + if (const QQmlPrivate::CachedQmlUnit *cachedUnit = QQmlMetaType::findCachedCompilationUnit(url, &cacheError)) { return ExecutableCompilationUnit::create( - QV4::CompiledData::CompilationUnit(cachedUnit, url.fileName(), url.toString())); + QV4::CompiledData::CompilationUnit(cachedUnit->qmlData, url.fileName(), url.toString())); } QFile f(QQmlFile::urlToLocalFileOrQrc(url)); -- cgit v1.2.3