Browse Source

flow: suppress shadow warnings

Michele Caini 3 years ago
parent
commit
696c94e2ea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/entt/graph/flow.hpp

+ 2 - 2
src/entt/graph/flow.hpp

@@ -224,7 +224,7 @@ public:
                     if(auto curr = it++; it != last) {
                         if(it->second) {
                             matrix.insert(curr->first, it->first);
-                        } else if(const auto next = std::find_if(it, last, [](const auto &elem) { return elem.second; }); next != last) {
+                        } else if(const auto next = std::find_if(it, last, [](const auto &value) { return value.second; }); next != last) {
                             for(; it != next; ++it) {
                                 matrix.insert(curr->first, it->first);
                                 matrix.insert(it->first, next->first);
@@ -237,7 +237,7 @@ public:
                     }
                 } else {
                     // ro item (first iteration only)
-                    if(const auto next = std::find_if(it, last, [](const auto &elem) { return elem.second; }); next != last) {
+                    if(const auto next = std::find_if(it, last, [](const auto &value) { return value.second; }); next != last) {
                         for(; it != next; ++it) {
                             matrix.insert(it->first, next->first);
                         }