aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljscompiler.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-06-04 12:29:53 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-06-04 16:27:59 +0200
commit303556c1dfb2d0e8e5d873cd59f5fee248a709fe (patch)
treed6564201962f5e2052e177d75eb00d1e4249fd49 /src/qmlcompiler/qqmljscompiler.cpp
parentf5140d62082e9b06e0ca6c8e2175b5836286f52e (diff)
QML compiler: Fix Unity build on Windows
Somehow, qt_windows.h gets in the mix which has the 'interface' define. Rename the variable. Pick-to: 6.10 6.9 Task-number: QTBUG-115140 Change-Id: I6d46d66d0db3350a975984bcc6c4858214615c8b Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljscompiler.cpp')
-rw-r--r--src/qmlcompiler/qqmljscompiler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qmlcompiler/qqmljscompiler.cpp b/src/qmlcompiler/qqmljscompiler.cpp
index 6f7be49dcd..c04ba26aa1 100644
--- a/src/qmlcompiler/qqmljscompiler.cpp
+++ b/src/qmlcompiler/qqmljscompiler.cpp
@@ -171,18 +171,18 @@ private:
bool qCompileQmlFile(const QString &inputFileName, QQmlJSSaveFunction saveFunction,
QQmlJSAotCompiler *aotCompiler, QQmlJSCompileError *error,
- bool storeSourceLocation, QV4::Compiler::CodegenWarningInterface *interface,
+ bool storeSourceLocation, QV4::Compiler::CodegenWarningInterface *wInterface,
const QString *fileContents)
{
QmlIR::Document irDocument(QString(), QString(), /*debugMode*/false);
return qCompileQmlFile(irDocument, inputFileName, saveFunction, aotCompiler, error,
- storeSourceLocation, interface, fileContents);
+ storeSourceLocation, wInterface, fileContents);
}
bool qCompileQmlFile(QmlIR::Document &irDocument, const QString &inputFileName,
QQmlJSSaveFunction saveFunction, QQmlJSAotCompiler *aotCompiler,
QQmlJSCompileError *error, bool storeSourceLocation,
- QV4::Compiler::CodegenWarningInterface *interface, const QString *fileContents)
+ QV4::Compiler::CodegenWarningInterface *wInterface, const QString *fileContents)
{
QString sourceCode;
@@ -213,7 +213,7 @@ bool qCompileQmlFile(QmlIR::Document &irDocument, const QString &inputFileName,
QQmlJSAotFunctionMap aotFunctionsByIndex;
{
- QmlIR::JSCodeGen v4CodeGen(&irDocument, interface, storeSourceLocation);
+ QmlIR::JSCodeGen v4CodeGen(&irDocument, wInterface, storeSourceLocation);
if (aotCompiler)
aotCompiler->setDocument(&v4CodeGen, &irDocument);