summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/gui/kernel/qguivariant/tst_qguivariant.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/gui/kernel/qguivariant/tst_qguivariant.cpp')
-rw-r--r--tests/benchmarks/gui/kernel/qguivariant/tst_qguivariant.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/benchmarks/gui/kernel/qguivariant/tst_qguivariant.cpp b/tests/benchmarks/gui/kernel/qguivariant/tst_qguivariant.cpp
index 4cf245507c..64aa08371d 100644
--- a/tests/benchmarks/gui/kernel/qguivariant/tst_qguivariant.cpp
+++ b/tests/benchmarks/gui/kernel/qguivariant/tst_qguivariant.cpp
@@ -70,7 +70,7 @@ void tst_QGuiVariant::createGuiType()
QFETCH(int, typeId);
QBENCHMARK {
for (int i = 0; i < ITERATION_COUNT; ++i)
- QVariant(typeId, (void *)0);
+ QVariant(QMetaType(typeId));
}
}
@@ -86,11 +86,11 @@ void tst_QGuiVariant::createGuiTypeCopy_data()
void tst_QGuiVariant::createGuiTypeCopy()
{
QFETCH(int, typeId);
- QVariant other(typeId, (void *)0);
+ QVariant other((QMetaType(typeId)));
const void *copy = other.constData();
QBENCHMARK {
for (int i = 0; i < ITERATION_COUNT; ++i)
- QVariant(typeId, copy);
+ QVariant(QMetaType(typeId), copy);
}
}