diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2023-08-21 10:15:19 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2023-08-22 13:45:16 +0000 |
commit | 88fbf6772ecc1c58425a92582c2ace21c2abd65e (patch) | |
tree | 534275ea62349679e5677b5835741bf551c3081e /tools/qscxmlc/scxmlcppdumper.cpp | |
parent | 5dd79cea3435e0e5d057d29d99a2910c036d4687 (diff) |
Update the moc copy
We need to explicitly cast the string data to char now because we want
to use the moc helper functions that expect char*. Previously we got
away with unsigned char* by declaring the members ourselves. Since we
always want to cast to char anyway when retrieving the data, it doesn't
matter.
Task-number: QTBUG-116255
Change-Id: I1ca017b5b434942606675514eddceb1f725a8bd7
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qscxmlc/scxmlcppdumper.cpp')
-rw-r--r-- | tools/qscxmlc/scxmlcppdumper.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/qscxmlc/scxmlcppdumper.cpp b/tools/qscxmlc/scxmlcppdumper.cpp index 70cdc76..98f6772 100644 --- a/tools/qscxmlc/scxmlcppdumper.cpp +++ b/tools/qscxmlc/scxmlcppdumper.cpp @@ -533,7 +533,9 @@ void CppDumper::writeImplStart() cpp << l("#include \"") << headerName << l("\"") << Qt::endl; cpp << Qt::endl << QStringLiteral("#include <qscxmlinvokableservice.h>") << Qt::endl - << QStringLiteral("#include <qscxmltabledata.h>") << Qt::endl; + << QStringLiteral("#include <qscxmltabledata.h>") << Qt::endl + << QStringLiteral("#include <QtCore/qtmochelpers.h>") << Qt::endl; + for (const QString &inc : std::as_const(includes)) { cpp << l("#include <") << inc << l(">") << Qt::endl; } |