We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 199418d commit d19d8e8Copy full SHA for d19d8e8
lib/checkother.cpp
@@ -3681,7 +3681,7 @@ void CheckOther::checkShadowVariables()
3681
continue;
3682
3683
if (functionScope && functionScope->type == Scope::ScopeType::eFunction && functionScope->function) {
3684
- const auto argList = functionScope->function->argumentList;
+ const auto & argList = functionScope->function->argumentList;
3685
auto it = std::find_if(argList.cbegin(), argList.cend(), [&](const Variable& arg) {
3686
return arg.nameToken() && var.name() == arg.name();
3687
});
0 commit comments