Rename HasEventWildcard to IsWildcardPath. (#27105)
This is checking for wildcard endpoints/clusters too, so HasEventWildcard is pretty misleading.
diff --git a/src/app/EventPathParams.h b/src/app/EventPathParams.h
index 29af405..1bf6b93 100644
--- a/src/app/EventPathParams.h
+++ b/src/app/EventPathParams.h
@@ -35,7 +35,7 @@
return other.mEndpointId == mEndpointId && other.mClusterId == mClusterId && other.mEventId == mEventId;
}
- bool HasEventWildcard() const { return HasWildcardEndpointId() || HasWildcardClusterId() || HasWildcardEventId(); }
+ bool IsWildcardPath() const { return HasWildcardEndpointId() || HasWildcardClusterId() || HasWildcardEventId(); }
// For event, an event id can only be interpreted if the cluster id is known.
bool IsValidEventPath() const { return !(HasWildcardClusterId() && !HasWildcardEventId()); }
diff --git a/src/app/reporting/Engine.cpp b/src/app/reporting/Engine.cpp
index a7bb6a5..7761e24 100644
--- a/src/app/reporting/Engine.cpp
+++ b/src/app/reporting/Engine.cpp
@@ -298,7 +298,7 @@
CHIP_ERROR err = CHIP_NO_ERROR;
for (auto current = apReadHandler->mpEventPathList; current != nullptr;)
{
- if (current->mValue.HasEventWildcard())
+ if (current->mValue.IsWildcardPath())
{
current = current->mpNext;
continue;