From 4c6f96ea96e26ff30a9db599d69e92afb8dcd945 Mon Sep 17 00:00:00 2001 From: tcoyvwac <53616399+tcoyvwac@users.noreply.github.com> Date: Mon, 26 Dec 2022 00:41:04 +0100 Subject: [PATCH] prefer const auto for: overlay_table --- src/sandbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sandbox.cpp b/src/sandbox.cpp index 39313f68..3e2d089a 100644 --- a/src/sandbox.cpp +++ b/src/sandbox.cpp @@ -2007,7 +2007,7 @@ void Sandbox::renderUI() { const function_sig_t do_overlay_action; const overlay_fn_args_t parameters; }; - const std::array overlay_table = { vtable_overlay_fn_args_with_pred_t + const auto overlay_table = { vtable_overlay_fn_args_with_pred_t {m_showTextures, &overlay_show_textures, {&uniforms, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}} , {m_showPasses, &overlay_show_buffer_passes, {&uniforms, &m_sceneRender, &m_postprocessing, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}} , {display_m_plots, &overlay_plot_data, {nullptr, nullptr, nullptr, &m_plot_shader, &m_plot_texture, nullptr, nullptr, nullptr, nullptr}}