From 067410031057ffc9bdb36b976bc2a658b23acb1b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Feb 2015 00:20:57 +0300 Subject: Add typed bool type Favorite. --- src/item.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/item.h') diff --git a/src/item.h b/src/item.h index 011a0da39..cd423ccf8 100644 --- a/src/item.h +++ b/src/item.h @@ -51,7 +51,7 @@ class Item notfinal const uint8_t color, const Identified identified, const Damaged damaged, - const bool favorite, + const Favorite favorite, const bool equipment, const bool equipped); @@ -188,10 +188,10 @@ class Item notfinal Damaged getDamaged() const A_WARN_UNUSED { return mDamaged; } - void setFavorite(const bool b) + void setFavorite(const Favorite b) { mFavorite = b; } - bool getFavorite() const A_WARN_UNUSED + Favorite getFavorite() const A_WARN_UNUSED { return mFavorite; } void setCard(const int index, const int id); @@ -226,7 +226,7 @@ class Item notfinal bool mInEquipment; /**< Item is in equipment */ Identified mIdentified; Damaged mDamaged; - bool mFavorite; + Favorite mFavorite; }; #endif // ITEM_H -- cgit v1.2.3-70-g09d2