18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-27 21:45:16 +01:00
Files
maszyna/application/application.cpp
jerrrrycho c2b034ddcd refactor: no side effects in the right operand of && and || (Sonar S912) (#364)
The ogl initialisation, the -resolution/-margin values of the standalone
previews and the submodel lookups of TGauge::Load assign or increment in
the right operand of && or ||. Each becomes plain statements which run
exactly when the operand ran before: init_ogl() only when needs_ogl(),
i advanced only when a value follows (and accepted), and the lookups by
name and then by name + "_off" per model, in the same order, leaving
submodel, submodelon and m_sourcemodel with the same values.
2026-11-20 03:42:49 +01:00

46 KiB