mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-03 14:20:21 +01:00
refactor(sonar): use std::ranges algorithms and std::erase(_if) (cpp:S6197)
This commit is contained in:
@@ -11377,7 +11377,7 @@ void TMoverParameters::LoadFIZ_Switches(std::string const &Input)
|
||||
{
|
||||
auto &presets{PantsPreset.first};
|
||||
extract_value(presets, "PantographPresets", Input, "0|1|3|2");
|
||||
presets.erase(std::remove(std::begin(presets), std::end(presets), '|'), std::end(presets));
|
||||
std::erase(presets, '|');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user