Codechange: Replace order related FOR_ALL with range-based for loops

This commit is contained in:
glx
2019-12-17 01:35:29 +01:00
committed by Niels Martin Hansen
parent 41232f18c1
commit 9892d90b26
8 changed files with 27 additions and 73 deletions

View File

@@ -64,17 +64,4 @@ public:
static void RemoveOrder(OrderType type, DestinationID destination, bool hangar);
};
/**
* Iterator over all order backups from a given ID.
* @param var The variable to iterate with.
* @param start The start of the iteration.
*/
#define FOR_ALL_ORDER_BACKUPS_FROM(var, start) FOR_ALL_ITEMS_FROM(OrderBackup, order_backup_index, var, start)
/**
* Iterator over all order backups.
* @param var The variable to iterate with.
*/
#define FOR_ALL_ORDER_BACKUPS(var) FOR_ALL_ORDER_BACKUPS_FROM(var, 0)
#endif /* ORDER_BACKUP_H */