16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 08:49:18 +02:00

reformat: use auto on certain types

This commit is contained in:
jerrrrycho
2026-07-04 05:22:52 +02:00
parent f61068ff89
commit 20e7a99516
118 changed files with 2118 additions and 2063 deletions

View File

@@ -10,7 +10,7 @@ void perfgraph_panel::render_contents() {
{
for (size_t i = 0; i < (size_t)TIMER_MAX; i++)
{
bool is_selected = (current_timer == (timers_e)i);
const bool is_selected = (current_timer == (timers_e)i);
if (ImGui::Selectable(timer_label[i].c_str(), is_selected))
current_timer = (timers_e)i;
if (is_selected)
@@ -19,7 +19,7 @@ void perfgraph_panel::render_contents() {
ImGui::EndCombo();
}
Timer::stopwatch *stopwatch = nullptr;
const Timer::stopwatch *stopwatch = nullptr;
if (current_timer == gfx_total)
stopwatch = &Timer::subsystem.gfx_total;