aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/tests/testnamespace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/ApiExtractor/tests/testnamespace.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/tests/testnamespace.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/shiboken6/ApiExtractor/tests/testnamespace.cpp b/sources/shiboken6/ApiExtractor/tests/testnamespace.cpp
index 7f0addd6b..99aabe780 100644
--- a/sources/shiboken6/ApiExtractor/tests/testnamespace.cpp
+++ b/sources/shiboken6/ApiExtractor/tests/testnamespace.cpp
@@ -57,8 +57,8 @@ void NamespaceTest::testNamespaceMembers()
QVERIFY(ns);
auto metaEnum = ns->findEnum(QLatin1String("Option"));
QVERIFY(metaEnum.has_value());
- const AbstractMetaFunction* func = ns->findFunction(QLatin1String("foo"));
- QVERIFY(func);
+ const auto func = ns->findFunction(QLatin1String("foo"));
+ QVERIFY(!func.isNull());
}
void NamespaceTest::testNamespaceInnerClassMembers()
@@ -89,8 +89,8 @@ void NamespaceTest::testNamespaceInnerClassMembers()
QVERIFY(ins);
const AbstractMetaClass *sc = AbstractMetaClass::findClass(classes, QLatin1String("OuterNamespace::InnerNamespace::SomeClass"));
QVERIFY(sc);
- const AbstractMetaFunction* meth = sc->findFunction(QLatin1String("method"));
- QVERIFY(meth);
+ const auto meth = sc->findFunction(QLatin1String("method"));
+ QVERIFY(!meth.isNull());
}
QTEST_APPLESS_MAIN(NamespaceTest)