mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 10:59:20 +02:00
refactor(sonar): reduce enum qualification with using enum (cpp:S6177)
Applied only where no unqualified name in the block could be captured by the introduced enumerators. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,9 +18,10 @@ void ui::time_panel::render_contents()
|
||||
|
||||
if (ImGui::Button(STR_C("Apply")))
|
||||
{
|
||||
m_relay.post(user_command::setdatetime, (double)yearday, time * 60.0, 1, 0);
|
||||
m_relay.post(user_command::setweather, fog, overcast, 1, 0);
|
||||
m_relay.post(user_command::settemperature, temperature, overcast, 1, 0);
|
||||
using enum user_command;
|
||||
m_relay.post(setdatetime, (double)yearday, time * 60.0, 1, 0);
|
||||
m_relay.post(setweather, fog, overcast, 1, 0);
|
||||
m_relay.post(settemperature, temperature, overcast, 1, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user