From 435f3682be7ba7b564c5ec99bba802e78c33fdb0 Mon Sep 17 00:00:00 2001 From: Koichi98 <45482193+Koichi98@users.noreply.github.com> Date: Tue, 25 Jun 2024 09:16:07 +0900 Subject: [PATCH] fix(diagnostic_graph_aggregator): fix shadowArgument warning in create_unit_config (#7664) Signed-off-by: Koichi Imai --- .../diagnostic_graph_aggregator/src/common/graph/config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/diagnostic_graph_aggregator/src/common/graph/config.cpp b/system/diagnostic_graph_aggregator/src/common/graph/config.cpp index c9d281a5c886e..553c21b5ff4d7 100644 --- a/system/diagnostic_graph_aggregator/src/common/graph/config.cpp +++ b/system/diagnostic_graph_aggregator/src/common/graph/config.cpp @@ -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; }