1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 09:09:09 +00:00

Codechange: Removed SmallVector completely

This commit is contained in:
Henry Wilson
2019-03-03 17:30:09 +00:00
committed by PeterN
parent 6570f7989f
commit c01a2e2a81
69 changed files with 109 additions and 127 deletions

View File

@@ -1185,7 +1185,7 @@ struct ListOrderChange {
uint target; ///< local ID
};
static SmallVector<ListOrderChange, 16> _list_order_changes;
static std::vector<ListOrderChange> _list_order_changes;
/**
* Record a vehicle ListOrderChange.
@@ -1226,7 +1226,7 @@ static int CDECL EnginePreSort(const EngineID *a, const EngineID *b)
void CommitVehicleListOrderChanges()
{
/* Pre-sort engines by scope-grfid and local index */
SmallVector<EngineID, 16> ordering;
std::vector<EngineID> ordering;
Engine *e;
FOR_ALL_ENGINES(e) {
ordering.push_back(e->index);