From acbf9a858b6b389103b7f43f4f4892a142ec56c6 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 20 Aug 2020 18:31:06 +0200 Subject: Cleanup QTypeInfo Remove QTypeInfo::isStatic, as that's not used anymore in Qt 6. Also remove sizeOf, it's unused, and we have QMetaType for that if required. Remove all typeinfo declaractions for trivial types, as the default template covers them correctly nowadays. Finally set up a better default for isPointer, and do some smaller cleanups all over the place. Change-Id: I6758ed37dfc701feaaf0ff105cc95e32da9f9c33 Reviewed-by: Fabian Kosmale Reviewed-by: Thiago Macieira --- tests/auto/corelib/tools/qlist/tst_qlist.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/auto/corelib/tools/qlist/tst_qlist.cpp') diff --git a/tests/auto/corelib/tools/qlist/tst_qlist.cpp b/tests/auto/corelib/tools/qlist/tst_qlist.cpp index 56651ae474..f37633b64c 100644 --- a/tests/auto/corelib/tools/qlist/tst_qlist.cpp +++ b/tests/auto/corelib/tools/qlist/tst_qlist.cpp @@ -184,11 +184,11 @@ inline size_t qHash(const Custom &key, size_t seed = 0) { return qHash(key.i, se Q_DECLARE_METATYPE(Custom); // tests depends on the fact that: -static_assert(!QTypeInfo::isStatic); +static_assert(QTypeInfo::isRelocatable); static_assert(!QTypeInfo::isComplex); -static_assert(!QTypeInfo::isStatic); +static_assert(QTypeInfo::isRelocatable); static_assert(QTypeInfo::isComplex); -static_assert(QTypeInfo::isStatic); +static_assert(!QTypeInfo::isRelocatable); static_assert(QTypeInfo::isComplex); @@ -2144,7 +2144,7 @@ void tst_QList::resizePOD_data() const QTest::addColumn("size"); QVERIFY(!QTypeInfo::isComplex); - QVERIFY(!QTypeInfo::isStatic); + QVERIFY(QTypeInfo::isRelocatable); QList null; QList empty(0, 5); @@ -2192,7 +2192,7 @@ void tst_QList::resizeComplexMovable_data() const QTest::addColumn("size"); QVERIFY(QTypeInfo::isComplex); - QVERIFY(!QTypeInfo::isStatic); + QVERIFY(QTypeInfo::isRelocatable); QList null; QList empty(0, 'Q'); @@ -2244,7 +2244,7 @@ void tst_QList::resizeComplex_data() const QTest::addColumn("size"); QVERIFY(QTypeInfo::isComplex); - QVERIFY(QTypeInfo::isStatic); + QVERIFY(!QTypeInfo::isRelocatable); QList null; QList empty(0, '0'); -- cgit v1.2.3