mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 20:29:17 +02:00
reformat: set variables to constexpr where possible
This commit is contained in:
@@ -444,7 +444,7 @@ void eu07_application::queue_quit(bool direct)
|
||||
return;
|
||||
}
|
||||
|
||||
const command_relay relay;
|
||||
constexpr command_relay relay;
|
||||
relay.post(user_command::quitsimulation, 0.0, 0.0, GLFW_PRESS, 0);
|
||||
}
|
||||
|
||||
@@ -901,7 +901,7 @@ void eu07_application::on_focus_change(bool focus)
|
||||
{
|
||||
if (Global.bInactivePause && m_network.has_value() && !m_network->client)
|
||||
{ // jeśli ma być pauzowanie okna w tle
|
||||
const command_relay relay;
|
||||
constexpr command_relay relay;
|
||||
relay.post(user_command::focuspauseset, focus ? 1.0 : 0.0, 0.0, GLFW_PRESS, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user