@@ -54,7 +54,7 @@ auto ecsact::rt_entt_codegen::system_util::detail::print_system_notify_views(
54
54
std::format (" ecsact::entt::detail::run_system<{}>" , system_name);
55
55
56
56
if (notify_setting == ECSACT_SYS_NOTIFY_ONINIT) {
57
- std::string pending_add_str =
57
+ auto pending_add_str =
58
58
std::format (" ecsact::entt::component_added<{}>" , cpp_comp_name);
59
59
60
60
auto view_name = std::format (" {}_init_view" , comp_name);
@@ -64,8 +64,8 @@ auto ecsact::rt_entt_codegen::system_util::detail::print_system_notify_views(
64
64
view_name,
65
65
registry_name,
66
66
details,
67
- std::vector<std::string> {pending_add_str},
68
- std::vector<std::string> {run_system_comp}
67
+ std::vector{pending_add_str},
68
+ std::vector{run_system_comp}
69
69
);
70
70
71
71
block (ctx, std::format (" for(auto entity: {})" , view_name), [&]() {
@@ -76,7 +76,7 @@ auto ecsact::rt_entt_codegen::system_util::detail::print_system_notify_views(
76
76
}
77
77
78
78
if (notify_setting == ECSACT_SYS_NOTIFY_ONREMOVE) {
79
- std::string pending_remove_str =
79
+ auto pending_remove_str =
80
80
std::format (" ecsact::entt::component_removed<{}>" , cpp_comp_name);
81
81
82
82
auto view_name = std::format (" {}_remove_view" , comp_name);
@@ -87,7 +87,7 @@ auto ecsact::rt_entt_codegen::system_util::detail::print_system_notify_views(
87
87
registry_name,
88
88
details,
89
89
std::vector{pending_remove_str},
90
- std::vector<std::string> {run_system_comp}
90
+ std::vector{run_system_comp}
91
91
);
92
92
93
93
block (ctx, std::format (" for(auto entity: {})" , view_name), [&]() {
@@ -98,7 +98,7 @@ auto ecsact::rt_entt_codegen::system_util::detail::print_system_notify_views(
98
98
}
99
99
100
100
if (notify_setting == ECSACT_SYS_NOTIFY_ONUPDATE) {
101
- std::string component_updated_str =
101
+ auto component_updated_str =
102
102
std::format (" ecsact::entt::component_updated<{}>" , cpp_comp_name);
103
103
104
104
auto view_name = std::format (" {}_update_view" , comp_name);
@@ -108,8 +108,8 @@ auto ecsact::rt_entt_codegen::system_util::detail::print_system_notify_views(
108
108
view_name,
109
109
registry_name,
110
110
details,
111
- std::vector<std::string> {component_updated_str},
112
- std::vector<std::string> {run_system_comp}
111
+ std::vector{component_updated_str},
112
+ std::vector{run_system_comp}
113
113
);
114
114
115
115
block (ctx, std::format (" for(auto entity: {})" , view_name), [&]() {
0 commit comments