diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2022-09-27 14:13:57 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-09-29 18:19:06 +0200 |
commit | 4bc3f64b0edc5f097ca7cad4a89a535db67aa266 (patch) | |
tree | 7aceecf29a4347167db3ce1572c7bf5e456f6272 /src/qmlcompiler/qqmljscompiler.cpp | |
parent | 435d587e74ee7a726ccc29e137cd0032a16383b2 (diff) | |
download | qtdeclarative-4bc3f64b0edc5f097ca7cad4a89a535db67aa266.tar.gz |
V4: Use an enum to categorize functions and rename aotFunction
We want to use the aotFunction member also for typed JavaScript
functions.
Change-Id: Iad6d12ebed3ad3069832484137ed8e4d9e7a7cf4
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljscompiler.cpp')
-rw-r--r-- | src/qmlcompiler/qqmljscompiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qmlcompiler/qqmljscompiler.cpp b/src/qmlcompiler/qqmljscompiler.cpp index a3c78f2fbc..1cc02abe25 100644 --- a/src/qmlcompiler/qqmljscompiler.cpp +++ b/src/qmlcompiler/qqmljscompiler.cpp @@ -575,10 +575,10 @@ bool qSaveQmlJSUnitAsCpp(const QString &inputFileName, const QString &outputFile writeStr(aotFunctions[FileScopeCodeIndex].code.toUtf8().constData()); if (aotFunctions.size() <= 1) { // FileScopeCodeIndex is always there, but it may be the only one. - writeStr("extern const QQmlPrivate::AOTCompiledFunction aotBuiltFunctions[] = { { 0, QMetaType::fromType<void>(), {}, nullptr } };"); + writeStr("extern const QQmlPrivate::TypedFunction aotBuiltFunctions[] = { { 0, QMetaType::fromType<void>(), {}, nullptr } };"); } else { writeStr(wrapCallCode); - writeStr("extern const QQmlPrivate::AOTCompiledFunction aotBuiltFunctions[] = {\n"); + writeStr("extern const QQmlPrivate::TypedFunction aotBuiltFunctions[] = {\n"); QString footer = QStringLiteral("});}\n"); |