From bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Dec 2016 20:26:59 +0300 Subject: Add noexcept in some files. --- src/being/flooritem.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/being/flooritem.h') diff --git a/src/being/flooritem.h b/src/being/flooritem.h index 7803c6cac..248a8b351 100644 --- a/src/being/flooritem.h +++ b/src/being/flooritem.h @@ -78,7 +78,7 @@ class FloorItem final : public ActorSprite /** * Returns the item ID. */ - int getItemId() const A_WARN_UNUSED + int getItemId() const noexcept2 A_WARN_UNUSED { return mItemId; } /** @@ -95,41 +95,41 @@ class FloorItem final : public ActorSprite int getTileY() const override final A_WARN_UNUSED { return mY; } - void incrementPickup() + void incrementPickup() noexcept2 { mPickupCount ++; } - unsigned getPickupCount() const A_WARN_UNUSED + unsigned getPickupCount() const noexcept2 A_WARN_UNUSED { return mPickupCount; } - ItemColor getColor() const A_WARN_UNUSED + ItemColor getColor() const noexcept2 A_WARN_UNUSED { return mColor; } - bool getShowMsg() const A_WARN_UNUSED + bool getShowMsg() const noexcept2 A_WARN_UNUSED { return mShowMsg; } - void setShowMsg(const bool n) + void setShowMsg(const bool n) noexcept2 { mShowMsg = n; } - void disableHightlight() + void disableHightlight() noexcept2 { mHighlight = false; } - CursorT getHoverCursor() const A_WARN_UNUSED + CursorT getHoverCursor() const noexcept2 A_WARN_UNUSED { return mCursor; } void setCards(const int *const cards, int sz); int getCard(const int index) const; - int getRefine() const A_WARN_UNUSED + int getRefine() const noexcept2 A_WARN_UNUSED { return mRefine; } - ItemTypeT getItemType() const A_WARN_UNUSED + ItemTypeT getItemType() const noexcept2 A_WARN_UNUSED { return mItemType; } - Identified getIdentified() const A_WARN_UNUSED + Identified getIdentified() const noexcept2 A_WARN_UNUSED { return mIdentified; } - Damaged getDamaged() const A_WARN_UNUSED + Damaged getDamaged() const noexcept2 A_WARN_UNUSED { return mDamaged; } private: -- cgit v1.2.3-60-g2f50