summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-30 01:19:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-30 13:11:34 +0300
commit6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (patch)
tree4a0a5fd220828b92ef96446fe38dbe67ff446c6c /src/item.h
parent2a70a50c785ce639b76141a3a6887836d22fe12c (diff)
downloadplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip
Add unused warnings to some files.
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h31
1 files changed, 16 insertions, 15 deletions
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. */