summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-16 22:17:15 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-16 22:17:15 +0300
commit5e8e53f6e795a84ab5ca6cfe0d08672878044707 (patch)
tree23f5a196c6a288ef52cea2742b02ddbc52b2db61 /src/inventory.cpp
parent0c063cf5b45a843485fe3343e5fb79a40141f88c (diff)
downloadmanaplus-5e8e53f6e795a84ab5ca6cfe0d08672878044707.tar.gz
manaplus-5e8e53f6e795a84ab5ca6cfe0d08672878044707.tar.bz2
manaplus-5e8e53f6e795a84ab5ca6cfe0d08672878044707.tar.xz
manaplus-5e8e53f6e795a84ab5ca6cfe0d08672878044707.zip
Convert InventoryType enum into strong typed.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index 3240f9d8f..500e8c207 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -53,7 +53,7 @@ namespace
};
} // namespace
-Inventory::Inventory(const InventoryType::Type type, const int size1) :
+Inventory::Inventory(const InventoryTypeT type, const int size1) :
mInventoryListeners(),
mVirtualRemove(),
mType(type),
@@ -298,39 +298,39 @@ std::string Inventory::getName() const
{
switch (mType)
{
- case InventoryType::INVENTORY:
+ case InventoryType::Inventory:
#ifdef EATHENA_SUPPORT
- case InventoryType::VENDING:
+ case InventoryType::Vending:
#endif
- case InventoryType::TYPE_END:
+ case InventoryType::TypeEnd:
default:
{
// TRANSLATORS: inventory type name
return N_("Inventory");
}
- case InventoryType::STORAGE:
+ case InventoryType::Storage:
{
// TRANSLATORS: inventory type name
return N_("Storage");
}
- case InventoryType::NPC:
+ case InventoryType::Npc:
{
// TRANSLATORS: inventory type name
return N_("Npc");
}
#ifdef EATHENA_SUPPORT
- case InventoryType::CART:
+ case InventoryType::Cart:
{
// TRANSLATORS: inventory type name
return N_("Cart");
}
- case InventoryType::MAIL:
+ case InventoryType::Mail:
{
// TRANSLATORS: inventory type name
return N_("Mail");
}
#endif
- case InventoryType::TRADE:
+ case InventoryType::Trade:
{
// TRANSLATORS: inventory type name
return N_("Trade");