From 48071e171de41a23197c7328ba038331a936e0eb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Jan 2013 15:25:24 +0300 Subject: Replace for to FOR_EACH in some classes. --- src/inventory.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/inventory.cpp') diff --git a/src/inventory.cpp b/src/inventory.cpp index c4416a002..a75a7a12e 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -202,11 +202,8 @@ void Inventory::removeInventoyListener(InventoryListener* const listener) void Inventory::distributeSlotsChangedEvent() { - for (InventoryListenerList::const_iterator i = mInventoryListeners.begin(), - i_end = mInventoryListeners.end(); i != i_end; ++i) - { + FOR_EACH (InventoryListenerList::const_iterator, i, mInventoryListeners) (*i)->slotsChanged(this); - } } Item *Inventory::findItemBySprite(std::string spritePath, -- cgit v1.2.3-70-g09d2