diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-01-19 15:25:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-01-20 17:05:57 +0300 |
commit | 48071e171de41a23197c7328ba038331a936e0eb (patch) | |
tree | 73c7ef1da8e5dd76469d75c0336d88c3371e4263 /src/inventory.cpp | |
parent | d07fba228b5251862ad670e1d4f079c9456fab4b (diff) | |
download | mv-48071e171de41a23197c7328ba038331a936e0eb.tar.gz mv-48071e171de41a23197c7328ba038331a936e0eb.tar.bz2 mv-48071e171de41a23197c7328ba038331a936e0eb.tar.xz mv-48071e171de41a23197c7328ba038331a936e0eb.zip |
Replace for to FOR_EACH in some classes.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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, |