use correct type for meta type in qNumVariantToHelper<T>()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-01-12 10:12:28 +02:00
parent 953512e5b2
commit 0dd157809c

View file

@ -2510,7 +2510,7 @@ template <typename T>
inline T qNumVariantToHelper(const QVariant::Private &d,
const QVariant::Handler *handler, bool *ok, const T& val)
{
uint t = qMetaTypeId<T>();
int t = qMetaTypeId<T>();
if (ok)
*ok = true;
if (d.type == t)