aboutsummaryrefslogtreecommitdiffstats
path: root/ApiExtractor/tests/testrefcounttag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ApiExtractor/tests/testrefcounttag.cpp')
-rw-r--r--ApiExtractor/tests/testrefcounttag.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ApiExtractor/tests/testrefcounttag.cpp b/ApiExtractor/tests/testrefcounttag.cpp
index 15f8dde98..e9f9f0ab7 100644
--- a/ApiExtractor/tests/testrefcounttag.cpp
+++ b/ApiExtractor/tests/testrefcounttag.cpp
@@ -53,7 +53,7 @@ void TestRefCountTag::testReferenceCountTag()
QScopedPointer<AbstractMetaBuilder> builder(TestUtil::parse(cppCode, xmlCode, false));
QVERIFY(!builder.isNull());
AbstractMetaClassList classes = builder->classes();
- AbstractMetaClass* classB = classes.findClass(QLatin1String("B"));
+ const AbstractMetaClass *classB = AbstractMetaClass::findClass(classes, QLatin1String("B"));
const AbstractMetaFunction* func = classB->findFunction(QLatin1String("keepObject"));
QVERIFY(func);
ReferenceCount refCount = func->modifications().first().argument_mods.first().referenceCounts.first();
@@ -85,7 +85,7 @@ void TestRefCountTag::testWithApiVersion()
QScopedPointer<AbstractMetaBuilder> builder(TestUtil::parse(cppCode, xmlCode, false, "0.1"));
QVERIFY(!builder.isNull());
AbstractMetaClassList classes = builder->classes();
- AbstractMetaClass* classB = classes.findClass(QLatin1String("B"));
+ const AbstractMetaClass *classB = AbstractMetaClass::findClass(classes, QLatin1String("B"));
const AbstractMetaFunction* func = classB->findFunction(QLatin1String("keepObject"));
QVERIFY(func);
ReferenceCount refCount = func->modifications().first().argument_mods.first().referenceCounts.first();