diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-12 20:26:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-12 20:26:59 +0300 |
commit | bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 (patch) | |
tree | 4d631106f76ba8a052dc2ef8b23b8a968040db82 /src/resources/item/shopitem.h | |
parent | 67638eeec5267977940dce29c5a94ce4d093ed69 (diff) | |
download | manaverse-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.gz manaverse-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.bz2 manaverse-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.xz manaverse-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.zip |
Add noexcept in some files.
Diffstat (limited to 'src/resources/item/shopitem.h')
-rw-r--r-- | src/resources/item/shopitem.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/resources/item/shopitem.h b/src/resources/item/shopitem.h index bf966aeb7..7961fce92 100644 --- a/src/resources/item/shopitem.h +++ b/src/resources/item/shopitem.h @@ -126,7 +126,7 @@ class ShopItem final : public Item * * @return the price of the item */ - int getPrice() const A_WARN_UNUSED + int getPrice() const noexcept2 A_WARN_UNUSED { return mPrice; } /** @@ -134,24 +134,24 @@ class ShopItem final : public Item * * @return the display name for the item in the shop list */ - const std::string &getDisplayName() const A_WARN_UNUSED + const std::string &getDisplayName() const noexcept2 A_WARN_UNUSED { return mDisplayName; } - void setVisible(const bool b) + void setVisible(const bool b) noexcept2 { mVisible = b; } - bool isVisible() const + bool isVisible() const noexcept2 A_WARN_UNUSED { return mVisible; } void increaseUsedQuantity(const int amount); - int getUsedQuantity() const A_WARN_UNUSED + int getUsedQuantity() const noexcept2 A_WARN_UNUSED { return mUsedQuantity; } - void setDisabled(const bool b) + void setDisabled(const bool b) noexcept2 { mDisabled = b; } - bool getDisabled() const A_WARN_UNUSED + bool getDisabled() const noexcept2 A_WARN_UNUSED { return mDisabled; } protected: |