Skip to content

Commit c2b4edc

Browse files
committed
Fix name shadowing
1 parent 55ba3ca commit c2b4edc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/chef/chef.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ def main() -> int:
868868
"""))
869869
if options.do_clean:
870870
shell.run_cmd("rm -rf out")
871-
shell.run_cmd("gn gen out")
871+
shell.run_cmd("gn gen --export-compile-commands out")
872872
shell.run_cmd("ninja -C out")
873873

874874
#

src/app/codegen-interaction-model/tests/TestCodegenModelViaMocks.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -403,11 +403,11 @@ class ListAttributeAcessInterface : public AttributeAccessInterface
403403
return CHIP_NO_ERROR;
404404
}
405405

406-
return encoder.EncodeList([this](const auto & encoder) {
406+
return encoder.EncodeList([this](const auto & listEncoder) {
407407
for (unsigned i = 0; i < mCount; i++)
408408
{
409409
mData.a = static_cast<uint8_t>(i % 0xFF);
410-
ReturnErrorOnFailure(encoder.Encode(mData));
410+
ReturnErrorOnFailure(listEncoder.Encode(mData));
411411
}
412412
return CHIP_NO_ERROR;
413413
});

0 commit comments

Comments
 (0)