summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qmetatype.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2021-12-06 13:30:10 +0100
committerMarc Mutz <marc.mutz@qt.io>2021-12-06 19:06:30 +0100
commitd5c605b14896a444430414a7dc719397107cdc9d (patch)
treea18e83050c0c4d59e25b443ee4b1580092b4e516 /src/corelib/kernel/qmetatype.cpp
parentd3646d2b05925fba5fbe8fd3118b535ec2d3a05c (diff)
QMetaType: port the BC fix for id() to new QT_REMOVED_SINCE
The allows qmetatype.cpp compilation to enjoy PCH again. Change-Id: I47c5af33a5dbc930ee4c120b254e732c52bc2369 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmetatype.cpp')
-rw-r--r--src/corelib/kernel/qmetatype.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/corelib/kernel/qmetatype.cpp b/src/corelib/kernel/qmetatype.cpp
index cb45031c9a..9494ff84f9 100644
--- a/src/corelib/kernel/qmetatype.cpp
+++ b/src/corelib/kernel/qmetatype.cpp
@@ -37,9 +37,7 @@
**
****************************************************************************/
-#define QT_QMETATYPE_BC_COMPAT 1
#include "qmetatype.h"
-#undef QT_QMETATYPE_BC_COMPAT
#include "qmetatype_p.h"
#include "qobjectdefs.h"
#include "qdatetime.h"
@@ -491,18 +489,6 @@ bool QMetaType::isRegistered() const
Returns id type hold by this QMetatype instance.
*/
-// keep in sync with version in header
-// ### Qt 7::remove BC helper
-int QMetaType::id() const
-{
- if (d_ptr) {
- if (int id = d_ptr->typeId.loadRelaxed())
- return id;
- return idHelper();
- }
- return 0;
-}
-
/*!
\internal
The slowpath of id(). Precondition: d_ptr != nullptr