Skip to content

Commit

Permalink
unshadow
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Sep 21, 2023
1 parent 96ca53b commit 179e292
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dsl/operation/TypeBind.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ namespace dsl {
reaction->unbinders.push_back([](threading::Reaction& r) {
auto& vec = store::TypeCallbackStore<message::ReactionStatistics>::get();

auto item = std::find_if(
auto it = std::find_if(
std::begin(vec),
std::end(vec),
[&r](const std::shared_ptr<threading::Reaction>& item) { return item->id == r.id; });

// If the item is in the list erase the item
if (item != std::end(vec)) {
if (it != std::end(vec)) {
vec.erase(item);
}
});
Expand Down

0 comments on commit 179e292

Please sign in to comment.