summaryrefslogtreecommitdiff
path: root/src/resources/inventory/inventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/inventory/inventory.h')
-rw-r--r--src/resources/inventory/inventory.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/inventory/inventory.h b/src/resources/inventory/inventory.h
index 8d1e0c076..473284c09 100644
--- a/src/resources/inventory/inventory.h
+++ b/src/resources/inventory/inventory.h
@@ -70,7 +70,7 @@ class Inventory notfinal
/**
* Returns the size that this instance is configured for.
*/
- unsigned getSize() const A_WARN_UNUSED
+ unsigned getSize() const noexcept2 A_WARN_UNUSED
{ return mSize; }
/**
@@ -152,7 +152,7 @@ class Inventory notfinal
/**
* Get the number of slots filled with an item
*/
- int getNumberOfSlotsUsed() const A_WARN_UNUSED
+ int getNumberOfSlotsUsed() const noexcept2 A_WARN_UNUSED
{ return mUsed; }
/**
@@ -164,10 +164,10 @@ class Inventory notfinal
void removeInventoyListener(InventoryListener *const listener);
- InventoryTypeT getType() const A_WARN_UNUSED
+ InventoryTypeT getType() const noexcept2 A_WARN_UNUSED
{ return mType; }
- bool isMainInventory() const A_WARN_UNUSED
+ bool isMainInventory() const noexcept2 A_WARN_UNUSED
{ return mType == InventoryType::Inventory; }
const Item *findItemBySprite(std::string spritePath,