Browse Source

test: minor changes

Michele Caini 1 year ago
parent
commit
f9a9034001

+ 1 - 1
test/lib/locator/plugin/userdata.h

@@ -5,7 +5,7 @@
 #include "../../../common/boxed_type.h"
 
 struct userdata {
-    typename entt::locator<test::boxed_int>::node_type handle{};
+    entt::locator<test::boxed_int>::node_type handle{};
     int value{};
 };
 

+ 2 - 2
test/lib/meta/plugin/userdata.h

@@ -6,8 +6,8 @@
 #include <entt/meta/meta.hpp>
 
 struct userdata {
-    entt::locator<entt::meta_ctx>::node_type ctx;
-    entt::meta_any any;
+    entt::locator<entt::meta_ctx>::node_type ctx{};
+    entt::meta_any any{};
 };
 
 #endif

+ 2 - 2
test/lib/meta/plugin_std/userdata.h

@@ -18,8 +18,8 @@
     }
 
 struct userdata {
-    entt::locator<entt::meta_ctx>::node_type ctx;
-    entt::meta_any any;
+    entt::locator<entt::meta_ctx>::node_type ctx{};
+    entt::meta_any any{};
 };
 
 ASSIGN_TYPE_ID(void);