Sfoglia il codice sorgente

test: remove unused variable

Michele Caini 3 anni fa
parent
commit
d06ccfb8e3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      test/entt/entity/storage.cpp

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

@@ -1659,7 +1659,7 @@ ENTT_DEBUG_TEST(StorageDeathTest, PinnedComponent) {
 
     ASSERT_DEATH(pool.swap_elements(entity, other), "");
     ASSERT_DEATH(pool.compact(), "");
-    ASSERT_DEATH(pool.sort([&pool](auto &&lhs, auto &&rhs) { return lhs < rhs; }), "");
+    ASSERT_DEATH(pool.sort([](auto &&lhs, auto &&rhs) { return lhs < rhs; }), "");
 }
 
 TEST(Storage, UpdateFromDestructor) {