diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-27 21:41:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-27 21:41:20 +0300 |
commit | 964ffbb9b6ed5246b14a7d0c0d065f7d38af0912 (patch) | |
tree | edef1b3f31183402e2d0f86ee48c9734c2a03c7e /src/gui/widgets/shopitems.cpp | |
parent | 41ac086fcd38fd472b579a495a8e8e7685ae4722 (diff) | |
download | plus-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.tar.gz plus-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.tar.bz2 plus-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.tar.xz plus-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.zip |
Fix some warnings and improve code from gcc 4.6 compilation.
Diffstat (limited to 'src/gui/widgets/shopitems.cpp')
-rw-r--r-- | src/gui/widgets/shopitems.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/shopitems.cpp b/src/gui/widgets/shopitems.cpp index 6cd0ef39d..764f22a57 100644 --- a/src/gui/widgets/shopitems.cpp +++ b/src/gui/widgets/shopitems.cpp @@ -105,12 +105,12 @@ void ShopItems::clear() mShopItems.clear(); } -ShopItem *ShopItems::findItem(int id, unsigned char color) +ShopItem *ShopItems::findItem(int id, unsigned char color) const { ShopItem *item; - std::vector<ShopItem*>::iterator it = mShopItems.begin(); - std::vector<ShopItem*>::iterator e = mShopItems.end(); + std::vector<ShopItem*>::const_iterator it = mShopItems.begin(); + std::vector<ShopItem*>::const_iterator e = mShopItems.end(); while (it != e) { item = *(it); |