summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qvariant.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-07-22 17:51:32 -0700
committerThiago Macieira <thiago.macieira@intel.com>2022-07-27 12:35:50 -0700
commitc66a51b9e41e0706559dd1880022840a954cd264 (patch)
treede6bf83c704a1501b8b9bb2287dae80606276de0 /src/corelib/kernel/qvariant.h
parent36b4aa111883fcd70c03f2bb8f61c9d22ab0b1aa (diff)
QVariant::Private: remove old typeId() function
Use type().id() instead. Change-Id: I3859764fed084846bcb0fffd17044f0fe10b6ff7 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qvariant.h')
-rw-r--r--src/corelib/kernel/qvariant.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/corelib/kernel/qvariant.h b/src/corelib/kernel/qvariant.h
index 75da91b9e5..9018f510a2 100644
--- a/src/corelib/kernel/qvariant.h
+++ b/src/corelib/kernel/qvariant.h
@@ -302,7 +302,7 @@ class Q_CORE_EXPORT QVariant
QT_DEPRECATED_VERSION_X_6_0("Use typeId() or metaType().")
Type type() const
{
- int type = d.typeId();
+ int type = d.type().id();
return type >= QMetaType::User ? UserType : static_cast<Type>(type);
}
QT_DEPRECATED_VERSION_6_0
@@ -469,11 +469,6 @@ public:
{
return QMetaType(typeInterface());
}
-
- inline int typeId() const
- {
- return type().id();
- }
};
public:
static QPartialOrdering compare(const QVariant &lhs, const QVariant &rhs);