moc: remove unnecessary emission of "#include <qbytearray.h>"
We don't need QByteArrayData any more (since 6.0). [ChangeLog][Potentially Source-Incompatible Changes] moc no longer emits an #include for QByteArray in the output file. None of the content that moc generates needed that header, so this should not cause changes for most people. However, codebases that #include'd the moc output (something that is recommended) could be depending on this indirect include. Change-Id: Id0fb9ab0089845ee8843fffd16f9cf13dc8d61b5 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit cb0b1ee4417d67104c2c80e0c0c2d8a32e905df3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
00ea70b840
commit
00d8c8114f
@ -1085,7 +1085,6 @@ void Moc::generate(FILE *out, FILE *jsonOutput)
|
||||
if (classList.size() && classList.constFirst().classname == "Qt")
|
||||
fprintf(out, "#include <QtCore/qobject.h>\n");
|
||||
|
||||
fprintf(out, "#include <QtCore/qbytearray.h>\n"); // For QByteArrayData
|
||||
fprintf(out, "#include <QtCore/qmetatype.h>\n"); // For QMetaType::Type
|
||||
if (mustIncludeQPluginH)
|
||||
fprintf(out, "#include <QtCore/qplugin.h>\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user