diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-30 13:05:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-30 13:11:34 +0300 |
commit | 0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9 (patch) | |
tree | 077c2ff59d6656096aa0acaaf4dd6bf4fb7867f7 /src/gui/widgets/shopitems.h | |
parent | 6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (diff) | |
download | manaverse-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.gz manaverse-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.bz2 manaverse-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.xz manaverse-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.zip |
Add unused warnings to other files.
Diffstat (limited to 'src/gui/widgets/shopitems.h')
-rw-r--r-- | src/gui/widgets/shopitems.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/widgets/shopitems.h b/src/gui/widgets/shopitems.h index 5a9e36151..56c686242 100644 --- a/src/gui/widgets/shopitems.h +++ b/src/gui/widgets/shopitems.h @@ -81,10 +81,10 @@ class ShopItems final : public gcn::ListModel /** * Returns the number of items in the shop. */ - int getNumberOfElements() override + int getNumberOfElements() override A_WARN_UNUSED { return static_cast<int>(mShopItems.size()); } - bool empty() const + bool empty() const A_WARN_UNUSED { return mShopItems.empty(); } /** @@ -92,12 +92,12 @@ class ShopItems final : public gcn::ListModel * * @param i the index to retrieve */ - std::string getElementAt(int i) override; + std::string getElementAt(int i) override A_WARN_UNUSED; /** * Returns the item number i in the shop. */ - ShopItem *at(unsigned int i) const; + ShopItem *at(unsigned int i) const A_WARN_UNUSED; /** * Removes an element from the shop. @@ -118,7 +118,7 @@ class ShopItems final : public gcn::ListModel */ void clear(); - std::vector<ShopItem*> &items() + std::vector<ShopItem*> &items() A_WARN_UNUSED { return mShopItems; } private: @@ -128,7 +128,8 @@ class ShopItems final : public gcn::ListModel * * @return the item found or 0 */ - ShopItem *findItem(const int id, const unsigned char color) const; + ShopItem *findItem(const int id, + const unsigned char color) const A_WARN_UNUSED; /** The list of items in the shop. */ std::vector<ShopItem*> mShopItems; |