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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user