瀏覽代碼

test: minor changes

Michele Caini 2 年之前
父節點
當前提交
f9a9034001
共有 3 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      test/lib/locator/plugin/userdata.h
  2. 2 2
      test/lib/meta/plugin/userdata.h
  3. 2 2
      test/lib/meta/plugin_std/userdata.h

+ 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);