diff options
Diffstat (limited to 'sources/shiboken2/ApiExtractor/tests/testrefcounttag.cpp')
-rw-r--r-- | sources/shiboken2/ApiExtractor/tests/testrefcounttag.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken2/ApiExtractor/tests/testrefcounttag.cpp b/sources/shiboken2/ApiExtractor/tests/testrefcounttag.cpp index 38099c455..9d1dcc1ae 100644 --- a/sources/shiboken2/ApiExtractor/tests/testrefcounttag.cpp +++ b/sources/shiboken2/ApiExtractor/tests/testrefcounttag.cpp @@ -56,7 +56,7 @@ void TestRefCountTag::testReferenceCountTag() 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(); + ReferenceCount refCount = func->modifications().constFirst().argument_mods.constFirst().referenceCounts.constFirst(); QCOMPARE(refCount.action, ReferenceCount::Add); } @@ -89,7 +89,7 @@ void TestRefCountTag::testWithApiVersion() 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(); + ReferenceCount refCount = func->modifications().constFirst().argument_mods.constFirst().referenceCounts.constFirst(); QCOMPARE(refCount.action, ReferenceCount::Add); QCOMPARE(func->modifications().size(), 1); |