From 6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 30 Oct 2012 01:19:46 +0300 Subject: Add unused warnings to some files. --- src/item.h | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'src/item.h') diff --git a/src/item.h b/src/item.h index fd66681de..0fb715547 100644 --- a/src/item.h +++ b/src/item.h @@ -59,19 +59,19 @@ class Item /** * Returns the item id. */ - int getId() const + int getId() const A_WARN_UNUSED { return mId; } /** * Returns the item image. */ - Image *getImage() const + Image *getImage() const A_WARN_UNUSED { return mImage; } /** * Returns the item image. */ - Image *getDrawImage() const + Image *getDrawImage() const A_WARN_UNUSED { return mDrawImage; } /** @@ -89,7 +89,7 @@ class Item /** * Returns the number of items. */ - int getQuantity() const + int getQuantity() const A_WARN_UNUSED { return mQuantity; } /** @@ -101,7 +101,7 @@ class Item /** * Returns whether this item is considered equipment. */ - bool isEquipment() const + bool isEquipment() const A_WARN_UNUSED { return mEquipment; } /** @@ -113,7 +113,7 @@ class Item /** * Returns whether this item is equipped. */ - bool isEquipped() const + bool isEquipped() const A_WARN_UNUSED { return mEquipped; } /** @@ -125,7 +125,7 @@ class Item /** * Returns this item refine level. */ - int getRefine() const + int getRefine() const A_WARN_UNUSED { return mRefine; } /** @@ -137,7 +137,7 @@ class Item /** * Returns whether this item is in equipment. */ - bool isInEquipment() const + bool isInEquipment() const A_WARN_UNUSED { return mInEquipment; } /** @@ -149,25 +149,26 @@ class Item /** * Returns the inventory index of this item. */ - int getInvIndex() const + int getInvIndex() const A_WARN_UNUSED { return mInvIndex; } /** * Returns information about this item type. */ - const ItemInfo &getInfo() const + const ItemInfo &getInfo() const A_WARN_UNUSED { return ItemDB::get(mId); } - std::string getName(); + std::string getName() A_WARN_UNUSED; - static Image *getImage(const int id, const unsigned char color); + static Image *getImage(const int id, + const unsigned char color) A_WARN_UNUSED; - bool isHaveTag(const int tagId); + bool isHaveTag(const int tagId) A_WARN_UNUSED; - unsigned char getColor() const + unsigned char getColor() const A_WARN_UNUSED { return mColor; } - std::string &getDescription() + std::string &getDescription() A_WARN_UNUSED { return mDescription; } int mId; /**< Item type id. */ -- cgit v1.2.3-70-g09d2