From 87cb31c159c6dead620c74d2e8a546accd362cd0 Mon Sep 17 00:00:00 2001 From: Kelwan Date: Thu, 16 May 2024 16:46:41 -0700 Subject: [PATCH] Let auto do its thing --- rt_entt_codegen/shared/system_util.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/rt_entt_codegen/shared/system_util.cc b/rt_entt_codegen/shared/system_util.cc index fd6b4b21..d86303c4 100644 --- a/rt_entt_codegen/shared/system_util.cc +++ b/rt_entt_codegen/shared/system_util.cc @@ -54,7 +54,7 @@ auto ecsact::rt_entt_codegen::system_util::detail::print_system_notify_views( std::format("ecsact::entt::detail::run_system<{}>", system_name); if(notify_setting == ECSACT_SYS_NOTIFY_ONINIT) { - std::string pending_add_str = + auto pending_add_str = std::format("ecsact::entt::component_added<{}>", cpp_comp_name); 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( view_name, registry_name, details, - std::vector{pending_add_str}, - std::vector{run_system_comp} + std::vector{pending_add_str}, + std::vector{run_system_comp} ); 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( } if(notify_setting == ECSACT_SYS_NOTIFY_ONREMOVE) { - std::string pending_remove_str = + auto pending_remove_str = std::format("ecsact::entt::component_removed<{}>", cpp_comp_name); 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( registry_name, details, std::vector{pending_remove_str}, - std::vector{run_system_comp} + std::vector{run_system_comp} ); 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( } if(notify_setting == ECSACT_SYS_NOTIFY_ONUPDATE) { - std::string component_updated_str = + auto component_updated_str = std::format("ecsact::entt::component_updated<{}>", cpp_comp_name); 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( view_name, registry_name, details, - std::vector{component_updated_str}, - std::vector{run_system_comp} + std::vector{component_updated_str}, + std::vector{run_system_comp} ); block(ctx, std::format("for(auto entity: {})", view_name), [&]() {