From 88fbf6772ecc1c58425a92582c2ace21c2abd65e Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 21 Aug 2023 10:15:19 +0200 Subject: 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 --- tools/qscxmlc/scxmlcppdumper.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/qscxmlc/scxmlcppdumper.cpp') 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 ") << Qt::endl - << QStringLiteral("#include ") << Qt::endl; + << QStringLiteral("#include ") << Qt::endl + << QStringLiteral("#include ") << Qt::endl; + for (const QString &inc : std::as_const(includes)) { cpp << l("#include <") << inc << l(">") << Qt::endl; } -- cgit v1.2.3