Browse Source

test: avoid shadow warnings

Michele Caini 2 years ago
parent
commit
215a22f425
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/entt/entity/storage.cpp

+ 2 - 2
test/entt/entity/storage.cpp

@@ -1671,8 +1671,8 @@ TEST(Storage, UpdateFromDestructor) {
         entt::storage<update_from_destructor> pool;
 
         for(std::size_t next{}; next < size; ++next) {
-            const auto entity = entt::entity(next);
-            pool.emplace(entity, pool, entity == entt::entity(size / 2) ? target : entity);
+            const auto other = entt::entity(next);
+            pool.emplace(other, pool, other == entt::entity(size / 2) ? target : other);
         }
 
         pool.erase(entt::entity(size / 2));