18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-24 17:49:13 +01:00

refactor(sonar): take read-only string parameters as std::string_view (cpp:S6009)

The Windows messaging helpers keep std::string, they need c_str().
This commit is contained in:
jerrrrycho
2026-10-10 17:28:41 +02:00
parent 86c99c2421
commit 2afa42c6b7
11 changed files with 14 additions and 14 deletions

View File

@@ -2518,7 +2518,7 @@ class TMoverParameters
/* funckje dla wagonow*/
bool AssignLoad(std::string const &Name, float const Amount = 0.f);
bool LoadingDone(double LSpeed, std::string const &Loadname);
bool LoadingDone(double LSpeed, std::string_view Loadname);
bool PermitDoors(side const Door, bool const State = true, range_t const Notify = range_t::consist);
void PermitDoors_(side const Door, bool const State = true);
bool ChangeDoorPermitPreset(int const Change, range_t const Notify = range_t::consist);