mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 01:59:19 +02:00
Replace starts_with and ends_with with string class methods
This commit is contained in:
@@ -611,7 +611,7 @@ TTrainParameters::load_sounds() {
|
||||
}
|
||||
// specified arrival time means it's a scheduled stop
|
||||
auto const stationname { (
|
||||
ends_with( station.StationName, "_po" ) ?
|
||||
station.StationName.ends_with("_po") ?
|
||||
station.StationName.substr( 0, station.StationName.size() - 3 ) :
|
||||
station.StationName ) };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user