Skip to content

Commit 9ec4acf

Browse files
Fix clang-tidy validation
1 parent cc22f3e commit 9ec4acf

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

examples/all-clusters-app/all-clusters-common/src/bridged-actions-stub.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ CHIP_ERROR ActionsDelegateImpl::ReadEndpointListAtIndex(uint16_t index, Endpoint
4646

4747
bool ActionsDelegateImpl::HaveActionWithId(uint16_t actionId, uint16_t & actionIndex)
4848
{
49-
for (uint16_t i = 0; i < kEndpointList.size(); i++)
49+
for (size_t i = 0; i < kEndpointList.size(); i++)
5050
{
5151
if (kActionList[i].actionID == actionId)
5252
{
53-
actionIndex = i;
53+
actionIndex = (uint16_t) i;
5454
return true;
5555
}
5656
}

src/app/clusters/actions-server/actions-server.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -419,13 +419,11 @@ void ActionsServer::InvokeCommand(HandlerContext & handlerContext)
419419
void ActionsServer::ActionListModified(EndpointId aEndpoint)
420420
{
421421
MarkDirty(aEndpoint, Attributes::ActionList::Id);
422-
return;
423422
}
424423

425424
void ActionsServer::EndpointListModified(EndpointId aEndpoint)
426425
{
427426
MarkDirty(aEndpoint, Attributes::EndpointLists::Id);
428-
return;
429427
}
430428

431429
void MatterActionsPluginServerInitCallback()

src/app/clusters/actions-server/actions-server.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ struct EndpointListStorage : public Structs::EndpointListStruct::Type
9393
{
9494
endpointListID = aEpListId;
9595
type = aEpListType;
96-
size_t epListSize = std::min(aEndpointList.size(), ArraySize(mEpList));
96+
size_t epListSize = std::min(aEndpointList.size(), MATTER_ARRAY_SIZE(mEpList));
9797

9898
for (size_t index = 0; index < epListSize; index++)
9999
{

0 commit comments

Comments
 (0)