Skip to content

Commit 87cb31c

Browse files
committed
Let auto do its thing
1 parent b11d588 commit 87cb31c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

rt_entt_codegen/shared/system_util.cc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ auto ecsact::rt_entt_codegen::system_util::detail::print_system_notify_views(
5454
std::format("ecsact::entt::detail::run_system<{}>", system_name);
5555

5656
if(notify_setting == ECSACT_SYS_NOTIFY_ONINIT) {
57-
std::string pending_add_str =
57+
auto pending_add_str =
5858
std::format("ecsact::entt::component_added<{}>", cpp_comp_name);
5959

6060
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(
6464
view_name,
6565
registry_name,
6666
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}
6969
);
7070

7171
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(
7676
}
7777

7878
if(notify_setting == ECSACT_SYS_NOTIFY_ONREMOVE) {
79-
std::string pending_remove_str =
79+
auto pending_remove_str =
8080
std::format("ecsact::entt::component_removed<{}>", cpp_comp_name);
8181

8282
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(
8787
registry_name,
8888
details,
8989
std::vector{pending_remove_str},
90-
std::vector<std::string>{run_system_comp}
90+
std::vector{run_system_comp}
9191
);
9292

9393
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(
9898
}
9999

100100
if(notify_setting == ECSACT_SYS_NOTIFY_ONUPDATE) {
101-
std::string component_updated_str =
101+
auto component_updated_str =
102102
std::format("ecsact::entt::component_updated<{}>", cpp_comp_name);
103103

104104
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(
108108
view_name,
109109
registry_name,
110110
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}
113113
);
114114

115115
block(ctx, std::format("for(auto entity: {})", view_name), [&]() {

0 commit comments

Comments
 (0)