1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Use range-based for loops

This commit is contained in:
Hielke Morsink
2017-12-06 00:12:36 +01:00
committed by Michael Steenbeek
parent e3c52360db
commit 79aa4a99cf
6 changed files with 47 additions and 50 deletions

View File

@@ -350,9 +350,9 @@ public:
private:
void ClearItems()
{
for (uint32 i = 0; i < _items.size(); i++)
for (auto &item : _items)
{
FreeItem(&_items[i]);
FreeItem(&item);
}
_items.clear();
_itemMap.clear();