QVariant: Fix qIsNumericType(SChar)
signed char is a numeric type Change-Id: I5cf9ed63cb7a2ba56c08119c77bcac0f9369b5df Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
This commit is contained in:
parent
849604e2f9
commit
b86b2a742a
@ -3139,7 +3139,8 @@ bool QVariant::convert(const int type, void *ptr) const
|
|||||||
static bool qIsNumericType(uint tp)
|
static bool qIsNumericType(uint tp)
|
||||||
{
|
{
|
||||||
return (tp >= QVariant::Bool && tp <= QVariant::Double)
|
return (tp >= QVariant::Bool && tp <= QVariant::Double)
|
||||||
|| (tp >= QMetaType::Long && tp <= QMetaType::Float);
|
|| (tp >= QMetaType::Long && tp <= QMetaType::Float)
|
||||||
|
|| tp == QMetaType::SChar;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool qIsFloatingPoint(uint tp)
|
static bool qIsFloatingPoint(uint tp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user