aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/tests/testmultipleinheritance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/ApiExtractor/tests/testmultipleinheritance.cpp')
-rw-r--r--sources/shiboken2/ApiExtractor/tests/testmultipleinheritance.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken2/ApiExtractor/tests/testmultipleinheritance.cpp b/sources/shiboken2/ApiExtractor/tests/testmultipleinheritance.cpp
index 67c9089ce..b78e6ec01 100644
--- a/sources/shiboken2/ApiExtractor/tests/testmultipleinheritance.cpp
+++ b/sources/shiboken2/ApiExtractor/tests/testmultipleinheritance.cpp
@@ -61,7 +61,8 @@ void TestMultipleInheritance::testVirtualClass()
const AbstractMetaClass *classD = AbstractMetaClass::findClass(classes, QLatin1String("D"));
bool functionFound = false;
- foreach (AbstractMetaFunction* f, classD->functions()) {
+ const AbstractMetaFunctionList &functions = classD->functions();
+ for (AbstractMetaFunction *f : functions) {
if (f->name() == QLatin1String("theBug")) {
functionFound = true;
break;