From 5e8e53f6e795a84ab5ca6cfe0d08672878044707 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Nov 2015 22:17:15 +0300 Subject: Convert InventoryType enum into strong typed. --- src/inventory.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/inventory.cpp') 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"); -- cgit v1.2.3-70-g09d2