From 0802ee19573e880e319a61ae814ee42c01e28cd3 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 20 Aug 2026 02:05:45 +0200 Subject: refactor: trailing return types in engine and states --- src/states/simulation_state.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/states/simulation_state.cpp') diff --git a/src/states/simulation_state.cpp b/src/states/simulation_state.cpp index 540f236..06955ff 100644 --- a/src/states/simulation_state.cpp +++ b/src/states/simulation_state.cpp @@ -15,7 +15,7 @@ namespace Donut { - void SimulationState::on_enter() + auto SimulationState::on_enter() -> void { DONUT_INFO("Entering Simulation State"); @@ -39,12 +39,12 @@ namespace Donut m_initialized = true; } - void SimulationState::on_exit() + auto SimulationState::on_exit() -> void { DONUT_INFO("Exiting Simulation State"); } - void SimulationState::on_update(float delta_time) + auto SimulationState::on_update(float delta_time) -> void { auto& engine = Application::get().get_engine(); engine.update_performance(delta_time); @@ -60,7 +60,7 @@ namespace Donut } } - void SimulationState::on_render() + auto SimulationState::on_render() -> void { auto& engine = Application::get().get_engine(); RenderCommand::set_clear_color(glm::vec4(0.0f, 0.0f, 0.0f, 1.0f)); @@ -71,7 +71,7 @@ namespace Donut engine.draw_blur_pass(); } - void SimulationState::on_event(Event& event) + auto SimulationState::on_event(Event& event) -> void { auto& engine = Application::get().get_engine(); @@ -112,7 +112,7 @@ namespace Donut } } - void SimulationState::on_im_ui_render() + auto SimulationState::on_im_ui_render() -> void { auto& engine = Application::get().get_engine(); -- cgit v1.3