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 <kotty.0704@gmail.com>
Signed-off-by: Simon Eisenmann <simon.eisenmann@driveblocks.ai>
  • Loading branch information
Koichi98 authored and simon-eisenmann-driveblocks committed Jun 26, 2024
1 parent 08165b4 commit 8ed3392
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 8ed3392

Please sign in to comment.