Fix QMetaType benchmark.
Void is not constructible, so there is no point in checking how fast it can be constructed. Change-Id: Icb4b607bebce30fff5fc57b105101f019e0e0db5 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
parent
fc7c25bab5
commit
14d222cc9d
@ -254,6 +254,7 @@ void tst_QMetaType::constructCoreType_data()
|
|||||||
{
|
{
|
||||||
QTest::addColumn<int>("typeId");
|
QTest::addColumn<int>("typeId");
|
||||||
for (int i = QMetaType::FirstCoreType; i <= QMetaType::LastCoreType; ++i)
|
for (int i = QMetaType::FirstCoreType; i <= QMetaType::LastCoreType; ++i)
|
||||||
|
if (i != QMetaType::Void)
|
||||||
QTest::newRow(QMetaType::typeName(i)) << i;
|
QTest::newRow(QMetaType::typeName(i)) << i;
|
||||||
// GUI types are tested in tst_QGuiMetaType.
|
// GUI types are tested in tst_QGuiMetaType.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user