Michele Caini 2 роки тому
батько
коміт
9e4f40fee6

+ 1 - 1
test/lib/dispatcher/common/types.h

@@ -2,7 +2,7 @@
 #define ENTT_LIB_DISPATCHER_COMMON_TYPES_H
 
 struct message {
-    int payload;
+    int payload{};
 };
 
 struct event {};

+ 1 - 1
test/lib/emitter/common/types.h

@@ -7,7 +7,7 @@ struct test_emitter
     : entt::emitter<test_emitter> {};
 
 struct message {
-    int payload;
+    int payload{};
 };
 
 struct event {};

+ 1 - 1
test/lib/locator/common/types.h

@@ -2,7 +2,7 @@
 #define ENTT_LIB_LOCATOR_COMMON_TYPES_H
 
 struct service {
-    int value;
+    int value{};
 };
 
 #endif

+ 2 - 2
test/lib/locator/plugin/types.h

@@ -6,8 +6,8 @@
 struct service;
 
 struct userdata {
-    typename entt::locator<service>::node_type handle;
-    int value;
+    typename entt::locator<service>::node_type handle{};
+    int value{};
 };
 
 #endif

+ 4 - 4
test/lib/meta/common/types.h

@@ -2,13 +2,13 @@
 #define ENTT_LIB_META_COMMON_TYPES_H
 
 struct position {
-    int x;
-    int y;
+    int x{};
+    int y{};
 };
 
 struct velocity {
-    double dx;
-    double dy;
+    double dx{};
+    double dy{};
 };
 
 #endif

+ 4 - 4
test/lib/registry/common/types.h

@@ -2,13 +2,13 @@
 #define ENTT_LIB_REGISTRY_COMMON_TYPES_H
 
 struct position {
-    int x;
-    int y;
+    int x{};
+    int y{};
 };
 
 struct velocity {
-    double dx;
-    double dy;
+    double dx{};
+    double dy{};
 };
 
 #endif