Browse Source

test: cleanup examples

skypjack 3 months ago
parent
commit
12d9660016
1 changed files with 4 additions and 4 deletions
  1. 4 4
      test/example/entity_copy.cpp

+ 4 - 4
test/example/entity_copy.cpp

@@ -13,8 +13,8 @@ enum class my_entity : entt::id_type {};
 template<typename Type>
 template<typename Type>
 // NOLINTNEXTLINE(*-exception-escape)
 // NOLINTNEXTLINE(*-exception-escape)
 struct meta_mixin: Type {
 struct meta_mixin: Type {
-    using allocator_type = typename Type::allocator_type;
-    using element_type = typename Type::element_type;
+    using allocator_type = Type::allocator_type;
+    using element_type = Type::element_type;
 
 
     explicit meta_mixin(const allocator_type &allocator);
     explicit meta_mixin(const allocator_type &allocator);
 };
 };
@@ -95,7 +95,7 @@ TYPED_TEST(EntityCopy, CrossRegistry) {
     src.emplace<char>(entity, 'c');
     src.emplace<char>(entity, 'c');
 
 
     ASSERT_EQ(src.storage<entt::entity>().size(), 1u);
     ASSERT_EQ(src.storage<entt::entity>().size(), 1u);
-    ASSERT_EQ(dst.template storage<typename TestFixture::type::entity_type>().size(), 1u);
+    ASSERT_EQ(dst.template storage<TestFixture::type::entity_type>().size(), 1u);
 
 
     ASSERT_TRUE((src.all_of<int, char>(entity)));
     ASSERT_TRUE((src.all_of<int, char>(entity)));
     ASSERT_FALSE((dst.template all_of<int, char>(copy)));
     ASSERT_FALSE((dst.template all_of<int, char>(copy)));
@@ -115,7 +115,7 @@ TYPED_TEST(EntityCopy, CrossRegistry) {
     }
     }
 
 
     ASSERT_EQ(src.storage<entt::entity>().size(), 1u);
     ASSERT_EQ(src.storage<entt::entity>().size(), 1u);
-    ASSERT_EQ(dst.template storage<typename TestFixture::type::entity_type>().size(), 1u);
+    ASSERT_EQ(dst.template storage<TestFixture::type::entity_type>().size(), 1u);
 
 
     ASSERT_TRUE((src.all_of<int, char>(entity)));
     ASSERT_TRUE((src.all_of<int, char>(entity)));
     ASSERT_TRUE((dst.template all_of<int, char>(copy)));
     ASSERT_TRUE((dst.template all_of<int, char>(copy)));