From 6ef66a5dfe938a23c67c0aef0d6c7ebc98b8cca8 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 23 Jan 2018 14:14:47 +0100 Subject: Remove private API dependency of qmlcachegen generated code Since the compilation unit does not have a backend anymore, we can create it in QtQml itself instead of in generated stub code. That removes the last dependency to private headers in the generated code. Change-Id: I186fc5bd679476b1a4714e4e3ba0ac00b55676cf Reviewed-by: Lars Knoll --- src/qml/compiler/qv4compileddata.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/qml/compiler/qv4compileddata.cpp') diff --git a/src/qml/compiler/qv4compileddata.cpp b/src/qml/compiler/qv4compileddata.cpp index 889e755682..cdba3a5931 100644 --- a/src/qml/compiler/qv4compileddata.cpp +++ b/src/qml/compiler/qv4compileddata.cpp @@ -94,7 +94,8 @@ static QString cacheFilePath(const QUrl &url) } #endif -CompilationUnit::CompilationUnit() +CompilationUnit::CompilationUnit(const Unit *unitData) + : data(unitData) {} #ifndef V4_BOOTSTRAP -- cgit v1.2.3