Codechange: Add station/roadstop class labels for DFLT/WAYP.

This avoids repeating the same multichar literal value.
This commit is contained in:
Peter Nelson
2024-05-07 12:13:47 +01:00
committed by Peter Nelson
parent d5671030b1
commit 9f8c9724be
4 changed files with 14 additions and 8 deletions

View File

@@ -32,10 +32,10 @@ template <>
/* static */ void StationClass::InsertDefaults()
{
/* Set up initial data */
StationClass::Get(StationClass::Allocate('DFLT'))->name = STR_STATION_CLASS_DFLT;
StationClass::Get(StationClass::Allocate('DFLT'))->Insert(nullptr);
StationClass::Get(StationClass::Allocate('WAYP'))->name = STR_STATION_CLASS_WAYP;
StationClass::Get(StationClass::Allocate('WAYP'))->Insert(nullptr);
StationClass::Get(StationClass::Allocate(STATION_CLASS_LABEL_DEFAULT))->name = STR_STATION_CLASS_DFLT;
StationClass::Get(StationClass::Allocate(STATION_CLASS_LABEL_DEFAULT))->Insert(nullptr);
StationClass::Get(StationClass::Allocate(STATION_CLASS_LABEL_WAYPOINT))->name = STR_STATION_CLASS_WAYP;
StationClass::Get(StationClass::Allocate(STATION_CLASS_LABEL_WAYPOINT))->Insert(nullptr);
}
template <>