diff options
Diffstat (limited to 'sources/shiboken6/ApiExtractor/tests/testabstractmetatype.cpp')
-rw-r--r-- | sources/shiboken6/ApiExtractor/tests/testabstractmetatype.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/ApiExtractor/tests/testabstractmetatype.cpp b/sources/shiboken6/ApiExtractor/tests/testabstractmetatype.cpp index 0fab1bf07..e65b0f214 100644 --- a/sources/shiboken6/ApiExtractor/tests/testabstractmetatype.cpp +++ b/sources/shiboken6/ApiExtractor/tests/testabstractmetatype.cpp @@ -77,7 +77,7 @@ void TestAbstractMetaType::testConstCharPtrType() AbstractMetaFunction *func = builder->globalFunctions().constFirst(); AbstractMetaType rtype = func->type(); // Test properties of const char* - QVERIFY(rtype); + QVERIFY(!rtype.isVoid()); QCOMPARE(rtype.package(), QLatin1String("Foo")); QCOMPARE(rtype.name(), QLatin1String("char")); QVERIFY(rtype.isConstant()); @@ -150,7 +150,7 @@ void TestAbstractMetaType::testCharType() AbstractMetaFunction *func = functions.constFirst(); AbstractMetaType rtype = func->type(); // Test properties of const char* - QVERIFY(rtype); + QVERIFY(!rtype.isVoid()); QCOMPARE(rtype.package(), QLatin1String("Foo")); QCOMPARE(rtype.name(), QLatin1String("char")); QVERIFY(!rtype.isConstant()); |