Skip to content

Commit edef5a8

Browse files
Rename HasEventWildcard to IsWildcardPath. (project-chip#27105)
This is checking for wildcard endpoints/clusters too, so HasEventWildcard is pretty misleading.
1 parent 937bc45 commit edef5a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/EventPathParams.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct EventPathParams
3535
return other.mEndpointId == mEndpointId && other.mClusterId == mClusterId && other.mEventId == mEventId;
3636
}
3737

38-
bool HasEventWildcard() const { return HasWildcardEndpointId() || HasWildcardClusterId() || HasWildcardEventId(); }
38+
bool IsWildcardPath() const { return HasWildcardEndpointId() || HasWildcardClusterId() || HasWildcardEventId(); }
3939

4040
// For event, an event id can only be interpreted if the cluster id is known.
4141
bool IsValidEventPath() const { return !(HasWildcardClusterId() && !HasWildcardEventId()); }

src/app/reporting/Engine.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ CHIP_ERROR Engine::CheckAccessDeniedEventPaths(TLV::TLVWriter & aWriter, bool &
298298
CHIP_ERROR err = CHIP_NO_ERROR;
299299
for (auto current = apReadHandler->mpEventPathList; current != nullptr;)
300300
{
301-
if (current->mValue.HasEventWildcard())
301+
if (current->mValue.IsWildcardPath())
302302
{
303303
current = current->mpNext;
304304
continue;

0 commit comments

Comments
 (0)