Skip to content

Commit 0eda5bf

Browse files
committed
Fix compiler warning (possibly unintended copy)
1 parent 65f9210 commit 0eda5bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generator/abstractmetabuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,10 +705,10 @@ AbstractMetaClass *AbstractMetaBuilder::traverseNamespace(NamespaceModelItem nam
705705

706706
// collect all include files (since namespace items might come from different files)
707707
QSet<QString> includeFiles;
708-
for (auto item : namespace_item->enums()) {
708+
for (const auto& item : namespace_item->enums()) {
709709
includeFiles.insert(item->fileName());
710710
}
711-
for (auto item : namespace_item->functions()) {
711+
for (const auto& item : namespace_item->functions()) {
712712
includeFiles.insert(item->fileName());
713713
}
714714
// (should we do this for typeAliases and inner namespaces too?)

0 commit comments

Comments
 (0)