diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-01-25 21:20:56 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-01-27 01:36:04 +0100 |
commit | 8224fd45d03670226e1e14cb2724a53de59b386f (patch) | |
tree | 9e9a9c61158c0ed4409028490b012d83352fea5b /src | |
parent | 97b465455bfd53b7ff72a6bad0b77060727cc1c2 (diff) |
QtCore: includemocs
This leaves moc_qnamespace.cpp in mocs_compilation.cpp.
Including moc files directly into their classes' TU tends to improve
codegen and enables extended compiler warnings, e.g. about unused
private functions or fields.
Pick-to: 6.3 6.2 5.15
Change-Id: Ifdff378c74828e12ec770cb2f453dab3a880e2a5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/mimetypes/qmimetype.cpp | 2 | ||||
-rw-r--r-- | src/corelib/time/qcalendar.cpp | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/mimetypes/qmimetype.cpp b/src/corelib/mimetypes/qmimetype.cpp index 3c10360561..4308665730 100644 --- a/src/corelib/mimetypes/qmimetype.cpp +++ b/src/corelib/mimetypes/qmimetype.cpp @@ -529,3 +529,5 @@ QDebug operator<<(QDebug debug, const QMimeType &mime) #endif QT_END_NAMESPACE + +#include "moc_qmimetype.cpp" diff --git a/src/corelib/time/qcalendar.cpp b/src/corelib/time/qcalendar.cpp index 7bfcbf49ac..adefa99ee9 100644 --- a/src/corelib/time/qcalendar.cpp +++ b/src/corelib/time/qcalendar.cpp @@ -1633,3 +1633,7 @@ QStringList QCalendar::availableCalendars() } QT_END_NAMESPACE + +#ifndef QT_BOOTSTRAPPED +#include "moc_qcalendar.cpp" +#endif |