Skip to content

Commit

Permalink
fix(diagnostic_graph_aggregator): fix shadowArgument warning in creat…
Browse files Browse the repository at this point in the history
…e_unit_config (autowarefoundation#7664)

Signed-off-by: Koichi Imai <[email protected]>
  • Loading branch information
Koichi98 authored Jun 25, 2024
1 parent 0256188 commit 435f368
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ UnitConfig * FileLoader::create_unit_config(const TreeData & data)
unit->item = create_link_config(item, unit);
}
const auto list = unit->data.optional("list").children();
for (const auto & data : list) {
unit->list.push_back(create_link_config(data, unit));
for (const auto & tree_data : list) {
unit->list.push_back(create_link_config(tree_data, unit));
}
return unit;
}
Expand Down

0 comments on commit 435f368

Please sign in to comment.