summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-06-15 09:09:08 +0200
committerLars Knoll <lars.knoll@qt.io>2020-08-15 10:56:29 +0200
commit8929c0a3550ae27cb5c9ed276d4c5a85594ba682 (patch)
tree56998feaa3acec13cc575a7f95b12b28e4407c44 /tests/auto/testlib/selftests
parentaf263b003be2f2e111ddc398bc8918cc006fcbb3 (diff)
Remove QVariant(int type, void *data, ...) constructor
It was marked internal anyway. Use the constructor taking a QMetaType instead. Change-Id: I15b9cd0911aac063a0f0fe0352fa2c84b7f7c691 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/testlib/selftests')
-rw-r--r--tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp b/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp
index fca49c9e07..14933fbe8b 100644
--- a/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp
+++ b/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp
@@ -317,14 +317,14 @@ void tst_Cmptest::compare_tostring_data()
QTest::newRow("string, null user type")
<< QVariant::fromValue(QString::fromLatin1("A simple string"))
- << QVariant(QVariant::Type(qRegisterMetaType<PhonyClass>("PhonyClass")))
+ << QVariant(QMetaType::fromType<PhonyClass>())
;
PhonyClass fake1 = {1};
PhonyClass fake2 = {2};
QTest::newRow("both non-null user type")
- << QVariant(qRegisterMetaType<PhonyClass>("PhonyClass"), (const void*)&fake1)
- << QVariant(qRegisterMetaType<PhonyClass>("PhonyClass"), (const void*)&fake2)
+ << QVariant(QMetaType::fromType<PhonyClass>(), (const void*)&fake1)
+ << QVariant(QMetaType::fromType<PhonyClass>(), (const void*)&fake2)
;
}