Skip to content

Commit

Permalink
One more move to preserve previous order
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Jul 23, 2024
1 parent 947ef98 commit 6c8839f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/AttributeAccessInterfaceRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,19 @@ AttributeAccessInterfaceRegistry & AttributeAccessInterfaceRegistry::Instance()
return instance;
}

void AttributeAccessInterfaceRegistry::UnregisterAllForEndpoint(EndpointId endpointId)
{
UnregisterMatchingAttributeAccessInterfaces(
[endpointId](AttributeAccessInterface * entry) { return entry->MatchesEndpoint(endpointId); }, mAttributeAccessOverrides);
}

void AttributeAccessInterfaceRegistry::Unregister(AttributeAccessInterface * attrOverride)
{
mAttributeAccessInterfaceCache.Invalidate();
UnregisterMatchingAttributeAccessInterfaces([attrOverride](AttributeAccessInterface * entry) { return entry == attrOverride; },
mAttributeAccessOverrides);
}

void AttributeAccessInterfaceRegistry::UnregisterAllForEndpoint(EndpointId endpointId)
{
UnregisterMatchingAttributeAccessInterfaces(
[endpointId](AttributeAccessInterface * entry) { return entry->MatchesEndpoint(endpointId); }, mAttributeAccessOverrides);
}

bool AttributeAccessInterfaceRegistry::Register(AttributeAccessInterface * attrOverride)
{
mAttributeAccessInterfaceCache.Invalidate();
Expand Down

0 comments on commit 6c8839f

Please sign in to comment.