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

Codechange: Replace SmallVector::Length() with std::vector::size()

This commit is contained in:
Henry Wilson
2018-09-23 12:23:54 +01:00
committed by PeterN
parent 56ae855dc2
commit a690936ed7
71 changed files with 287 additions and 297 deletions

View File

@@ -1233,7 +1233,7 @@ void CommitVehicleListOrderChanges()
FOR_ALL_ENGINES(e) {
*ordering.Append() = e->index;
}
QSortT(ordering.Begin(), ordering.Length(), EnginePreSort);
QSortT(ordering.Begin(), ordering.size(), EnginePreSort);
/* Apply Insertion-Sort operations */
const ListOrderChange *end = _list_order_changes.End();