aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testrefcounttag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testrefcounttag.cpp')
-rw-r--r--tests/testrefcounttag.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testrefcounttag.cpp b/tests/testrefcounttag.cpp
index 424055f2c..9e05cee93 100644
--- a/tests/testrefcounttag.cpp
+++ b/tests/testrefcounttag.cpp
@@ -48,7 +48,7 @@ void TestRefCountTag::testReferenceCountTag()
AbstractMetaClassList classes = t.builder()->classes();
AbstractMetaClass* classB = classes.findClass("B");
const AbstractMetaFunction* func = classB->findFunction("keepObject");
-
+ QVERIFY(func);
ReferenceCount refCount = func->modifications().first().argument_mods.first().referenceCounts.first();
QCOMPARE(refCount.action, ReferenceCount::Add);
}
@@ -80,7 +80,7 @@ void TestRefCountTag::testWithApiVersion()
AbstractMetaClassList classes = t.builder()->classes();
AbstractMetaClass* classB = classes.findClass("B");
const AbstractMetaFunction* func = classB->findFunction("keepObject");
-
+ QVERIFY(func);
ReferenceCount refCount = func->modifications().first().argument_mods.first().referenceCounts.first();
QCOMPARE(refCount.action, ReferenceCount::Add);