summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-26 09:21:43 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-26 10:59:32 +0200
commit5f5fc9bf6ff5c5bc66d2c3026d601cfe4f77a24c (patch)
treecb2f20ea7f94bd07c572b9a8b7773164c1508993 /tests
parent89f51a06809b71a8965de3c70c99664b22d04f57 (diff)
Fix QMetaType API deprecation warning in benchmark
Slipped through 1d3fe418e2cacba4cd75156ff94237d9f2461f07. Change-Id: I7ff39852a878ce76d48d5a1798a49f9137e00a13 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp b/tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp
index 4aa08f1a43..f2618f7813 100644
--- a/tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp
+++ b/tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp
@@ -338,7 +338,7 @@ void tst_qvariant::createCoreType_data()
QTest::addColumn<int>("typeId");
for (int i = QMetaType::FirstCoreType; i <= QMetaType::LastCoreType; ++i) {
if (QMetaType metaType(i); metaType.isValid()) // QMetaType(27) does not exist
- QTest::newRow(metaType.typeName(i)) << i;
+ QTest::newRow(metaType.name()) << i;
}
}