Skip to content

Commit 1e25db2

Browse files
committed
Fixed variable name shadowing
1 parent ffd6f7c commit 1e25db2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/chip-tool/commands/clusters/DataModelLogger.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ class DataModelLogger
169169
while (iter.Next())
170170
{
171171
++i;
172-
std::string label = std::string("[") + std::to_string(i) + "]";
172+
std::string index = std::string("[") + std::to_string(i) + "]";
173173
std::string item = std::to_string(iter.GetValue()) + " (" + ClusterIdToText(iter.GetValue()) + ")";
174-
DataModelLogger::LogString(label, indent + 1, item);
174+
DataModelLogger::LogString(index, indent + 1, item);
175175
}
176176
if (iter.GetStatus() != CHIP_NO_ERROR)
177177
{
@@ -191,9 +191,9 @@ class DataModelLogger
191191
while (iter.Next())
192192
{
193193
++i;
194-
std::string label = std::string("[") + std::to_string(i) + "]";
194+
std::string index = std::string("[") + std::to_string(i) + "]";
195195
std::string item = std::to_string(iter.GetValue()) + " (" + AttributeIdToText(cluster, iter.GetValue()) + ")";
196-
DataModelLogger::LogString(label, indent + 1, item);
196+
DataModelLogger::LogString(index, indent + 1, item);
197197
}
198198
if (iter.GetStatus() != CHIP_NO_ERROR)
199199
{
@@ -213,9 +213,9 @@ class DataModelLogger
213213
while (iter.Next())
214214
{
215215
++i;
216-
std::string label = std::string("[") + std::to_string(i) + "]";
216+
std::string index = std::string("[") + std::to_string(i) + "]";
217217
std::string item = std::to_string(iter.GetValue()) + " (" + CommandIdToText(cluster, iter.GetValue()) + ")";
218-
DataModelLogger::LogString(label, indent + 1, item);
218+
DataModelLogger::LogString(index, indent + 1, item);
219219
}
220220
if (iter.GetStatus() != CHIP_NO_ERROR)
221221
{

0 commit comments

Comments
 (0)