We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65f9210 commit 0eda5bfCopy full SHA for 0eda5bf
generator/abstractmetabuilder.cpp
@@ -705,10 +705,10 @@ AbstractMetaClass *AbstractMetaBuilder::traverseNamespace(NamespaceModelItem nam
705
706
// collect all include files (since namespace items might come from different files)
707
QSet<QString> includeFiles;
708
- for (auto item : namespace_item->enums()) {
+ for (const auto& item : namespace_item->enums()) {
709
includeFiles.insert(item->fileName());
710
}
711
- for (auto item : namespace_item->functions()) {
+ for (const auto& item : namespace_item->functions()) {
712
713
714
// (should we do this for typeAliases and inner namespaces too?)
0 commit comments