Przeglądaj źródła

test: const correctness

Michele Caini 1 rok temu
rodzic
commit
38fb30e336
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      test/entt/meta/meta_any.cpp

+ 1 - 1
test/entt/meta/meta_any.cpp

@@ -138,7 +138,7 @@ TEST_F(MetaAny, Empty) {
 
 
 TEST_F(MetaAny, Context) {
 TEST_F(MetaAny, Context) {
     entt::meta_any any{};
     entt::meta_any any{};
-    entt::meta_ctx ctx{};
+    const entt::meta_ctx ctx{};
 
 
     ASSERT_EQ(&any.context(), &entt::locator<entt::meta_ctx>::value_or());
     ASSERT_EQ(&any.context(), &entt::locator<entt::meta_ctx>::value_or());
     ASSERT_NE(&any.context(), &ctx);
     ASSERT_NE(&any.context(), &ctx);