mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codechange: Use emplace_back instead of push_back. (#13855)
This commit is contained in:
@@ -237,7 +237,7 @@ void SetCurrentRailTypeLabelList()
|
||||
_railtype_list.clear();
|
||||
|
||||
for (RailType rt = RAILTYPE_BEGIN; rt != RAILTYPE_END; rt++) {
|
||||
_railtype_list.push_back({GetRailTypeInfo(rt)->label, 0});
|
||||
_railtype_list.emplace_back(GetRailTypeInfo(rt)->label, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user