Procházet zdrojové kódy

sigh_mixin: avoid shadow warnings

Michele Caini před 3 roky
rodič
revize
7a1a06a24b
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      src/entt/entity/mixin.hpp

+ 3 - 3
src/entt/entity/mixin.hpp

@@ -48,10 +48,10 @@ class sigh_mixin final: public Type {
         if(!destruction.empty()) {
             ENTT_ASSERT(owner != nullptr, "Invalid pointer to registry");
 
-            const auto iterable = Type::each();
-            const auto last = iterable.end().base();
+            const auto view = Type::each();
+            const auto last = view.end().base();
 
-            for(auto first = iterable.begin().base(); first != last; ++first) {
+            for(auto first = view.begin().base(); first != last; ++first) {
                 if constexpr(Type::traits_type::in_place_delete) {
                     if(const auto entt = *first; entt != tombstone) {
                         destruction.publish(*owner, entt);