Codechange: Replace FOR_ALL_CARGOPACKETS with range-based for loops

This commit is contained in:
glx
2019-12-15 17:37:35 +01:00
committed by Niels Martin Hansen
parent 60e3cf8aff
commit 5fce5fa300
3 changed files with 4 additions and 22 deletions

View File

@@ -192,19 +192,6 @@ public:
static void AfterLoad();
};
/**
* Iterate over all _valid_ cargo packets from the given start.
* @param var Variable used as "iterator".
* @param start Cargo packet ID of the first packet to iterate over.
*/
#define FOR_ALL_CARGOPACKETS_FROM(var, start) FOR_ALL_ITEMS_FROM(CargoPacket, cargopacket_index, var, start)
/**
* Iterate over all _valid_ cargo packets from the begin of the pool.
* @param var Variable used as "iterator".
*/
#define FOR_ALL_CARGOPACKETS(var) FOR_ALL_CARGOPACKETS_FROM(var, 0)
/**
* Simple collection class for a list of cargo packets.
* @tparam Tinst Actual instantiation of this cargo list.