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/flooritem.h | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'src/flooritem.h') diff --git a/src/flooritem.h b/src/flooritem.h index e497d0bc6..f4b843a8c 100644 --- a/src/flooritem.h +++ b/src/flooritem.h @@ -54,7 +54,7 @@ class FloorItem final : public ActorSprite A_DELETE_COPY(FloorItem) - Type getType() const override + Type getType() const override A_WARN_UNUSED { return FLOOR_ITEM; } bool draw(Graphics *graphics, int offsetX, int offsetY) const override; @@ -62,33 +62,33 @@ class FloorItem final : public ActorSprite /** * Returns the item ID. */ - int getItemId() const + int getItemId() const A_WARN_UNUSED { return mItemId; } /** * Returns the item info for this floor item. Useful for adding an item * link for the floor item to chat. */ - const ItemInfo &getInfo() const; + const ItemInfo &getInfo() const A_WARN_UNUSED; - std::string getName() const; + std::string getName() const A_WARN_UNUSED; - virtual int getTileX() const override + virtual int getTileX() const override A_WARN_UNUSED { return mX; } - virtual int getTileY() const override + virtual int getTileY() const override A_WARN_UNUSED { return mY; } void incrementPickup() { mPickupCount ++; } - unsigned getPickupCount() const + unsigned getPickupCount() const A_WARN_UNUSED { return mPickupCount; } - unsigned char getColor() const + unsigned char getColor() const A_WARN_UNUSED { return mColor; } - bool getShowMsg() const + bool getShowMsg() const A_WARN_UNUSED { return mShowMsg; } void setShowMsg(const bool n) @@ -97,15 +97,13 @@ class FloorItem final : public ActorSprite void disableHightlight() { mHighlight = false; } - Cursor::Cursor getHoverCursor() const + Cursor::Cursor getHoverCursor() const A_WARN_UNUSED { return mCursor; } private: int mItemId; int mX, mY; -// Item *mItem; Map *mMap; -// float mAlpha; int mDropTime; int mAmount; unsigned mPickupCount; -- cgit v1.2.3-60-g2f50