diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2022-04-06 17:29:41 +0200 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2022-04-27 13:18:21 +0200 |
commit | 6fd8436dd6785529fbab21e27a56e951c45901d1 (patch) | |
tree | eeb82d5d284bfb959662d2221b9fe2cd17a29a1b /src/nfc/qndefmessage.h | |
parent | 358d1431bf0c53165a319efb2cb1b747c9b1e1f0 (diff) |
Replace Q_DECLARE_METATYPE with QT_DECL_METATYPE_EXTERN
This reduces compilation time by avoiding repeated metatype
instantiations.
Can't pick to 6.3 or 6.2, because this introduces new exported
symbols.
As a drive-by: added missing QT_BEGIN/END_NAMESPACE macros
Fixes: QTBUG-102215
Change-Id: If76d768b9565a43071dc73a8e738269048db86cb
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/nfc/qndefmessage.h')
-rw-r--r-- | src/nfc/qndefmessage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nfc/qndefmessage.h b/src/nfc/qndefmessage.h index ef051afd..39101c99 100644 --- a/src/nfc/qndefmessage.h +++ b/src/nfc/qndefmessage.h @@ -69,6 +69,6 @@ public: QT_END_NAMESPACE -Q_DECLARE_METATYPE(QNdefMessage) +QT_DECL_METATYPE_EXTERN(QNdefMessage, Q_NFC_EXPORT) #endif // QNDEFMESSAGE_H |