aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/tests/testrefcounttag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/ApiExtractor/tests/testrefcounttag.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/tests/testrefcounttag.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/shiboken6/ApiExtractor/tests/testrefcounttag.cpp b/sources/shiboken6/ApiExtractor/tests/testrefcounttag.cpp
index a589827e4..f3ffd0edf 100644
--- a/sources/shiboken6/ApiExtractor/tests/testrefcounttag.cpp
+++ b/sources/shiboken6/ApiExtractor/tests/testrefcounttag.cpp
@@ -57,7 +57,8 @@ void TestRefCountTag::testReferenceCountTag()
const AbstractMetaClass *classB = AbstractMetaClass::findClass(classes, QLatin1String("B"));
const auto func = classB->findFunction(QLatin1String("keepObject"));
QVERIFY(!func.isNull());
- ReferenceCount refCount = func->modifications().constFirst().argument_mods().constFirst().referenceCounts.constFirst();
+ const auto refCount =
+ func->modifications().constFirst().argument_mods().constFirst().referenceCounts().constFirst();
QCOMPARE(refCount.action, ReferenceCount::Add);
}
@@ -90,7 +91,8 @@ void TestRefCountTag::testWithApiVersion()
const AbstractMetaClass *classB = AbstractMetaClass::findClass(classes, QLatin1String("B"));
const auto func = classB->findFunction(QLatin1String("keepObject"));
QVERIFY(!func.isNull());
- ReferenceCount refCount = func->modifications().constFirst().argument_mods().constFirst().referenceCounts.constFirst();
+ const auto refCount =
+ func->modifications().constFirst().argument_mods().constFirst().referenceCounts().constFirst();
QCOMPARE(refCount.action, ReferenceCount::Add);
QCOMPARE(func->modifications().size(), 1);