From f39c6ed3c64a205475ada0dff0da819808396c9d Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 9 Aug 2018 14:30:13 +0200 Subject: [PATCH] Fixed: Warnings --HG-- branch : develop --- code/nel/src/gui/group_html.cpp | 4 +-- code/ryzom/client/src/item_group_manager.cpp | 26 ++++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 6f0e612c9..9c022934a 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -459,7 +459,7 @@ namespace NLGUI #endif // Display cached image while downloading new - if (type != TImageType::OverImage && CFile::fileExists(dest)) + if (type != OverImage && CFile::fileExists(dest)) { setImage(img, dest, type); setImageSize(img, style); @@ -4711,7 +4711,7 @@ namespace NLGUI if (overBitmap != normalBitmap) { over = localImageName(overBitmap); - addImageDownload(overBitmap, ctrlButton, style, TImageType::OverImage); + addImageDownload(overBitmap, ctrlButton, style, OverImage); } } diff --git a/code/ryzom/client/src/item_group_manager.cpp b/code/ryzom/client/src/item_group_manager.cpp index e72f2d730..d4a7a4ba0 100644 --- a/code/ryzom/client/src/item_group_manager.cpp +++ b/code/ryzom/client/src/item_group_manager.cpp @@ -83,8 +83,8 @@ void CItemGroup::addItem(sint32 createTime, sint32 serial, SLOT_EQUIPMENT::TSlot nldebug("Not adding duplicate item, createTime: %d, serial: %d", createTime, serial); //In this case, we are adding the duplicate item for a 2 hands item //If it's saved as a left hand item, save it as a right hand item instead (so we have only 1 correct item) - if(Items[i].slot == SLOT_EQUIPMENT::TSlotEquipment::HANDL && slot == SLOT_EQUIPMENT::TSlotEquipment::HANDR) - Items[i].slot = SLOT_EQUIPMENT::TSlotEquipment::HANDR; + if(Items[i].slot == SLOT_EQUIPMENT::HANDL && slot == SLOT_EQUIPMENT::HANDR) + Items[i].slot = SLOT_EQUIPMENT::HANDR; return; } } @@ -389,7 +389,7 @@ CItemGroup CItemGroupManager::migrateGroup(CItemGroup group) //Get all matching items from all inventory CItemGroup out; out.name = group.name; - for (int i=0; i < INVENTORIES::TInventory::NUM_ALL_INVENTORY; i++) + for (int i=0; i < INVENTORIES::NUM_ALL_INVENTORY; i++) { INVENTORIES::TInventory inventory = (INVENTORIES::TInventory)i; std::vector items = matchingItems(&group, inventory); @@ -501,7 +501,7 @@ bool CItemGroupManager::moveGroup(std::string name, INVENTORIES::TInventory dst) std::string moveParams = "to=lists|nblist=1|listsheet0=" + toDbPath(dst); // Grab all matching item from all available inventory and put it in dst - for (int i=0; i< INVENTORIES::TInventory::NUM_ALL_INVENTORY; i ++) + for (int i=0; i< INVENTORIES::NUM_ALL_INVENTORY; i ++) { INVENTORIES::TInventory inventory = (INVENTORIES::TInventory)i; if (inventory != dst && pIM->isInventoryAvailable(inventory)) @@ -531,7 +531,7 @@ bool CItemGroupManager::equipGroup(std::string name, bool pullBefore) return false; } - if(pullBefore) moveGroup(name, INVENTORIES::TInventory::bag); + if(pullBefore) moveGroup(name, INVENTORIES::bag); //Start by unequipping all slot that user wants to unequip for(int i=0; i < group->removeBeforeEquip.size(); i++) { @@ -555,7 +555,7 @@ bool CItemGroupManager::equipGroup(std::string name, bool pullBefore) {ITEM_TYPE::RING, false}, }; std::vector duals; - std::vector items = matchingItems(group, INVENTORIES::TInventory::bag); + std::vector items = matchingItems(group, INVENTORIES::bag); for(int i=0; i < items.size(); i++) { CInventoryItem item = items[i]; @@ -713,19 +713,19 @@ std::string CItemGroupManager::toDbPath(INVENTORIES::TInventory inventory) { switch(inventory) { - case INVENTORIES::TInventory::bag: + case INVENTORIES::bag: return LIST_BAG_TEXT; break; - case INVENTORIES::TInventory::pet_animal1: + case INVENTORIES::pet_animal1: return LIST_PA0_TEXT; break; - case INVENTORIES::TInventory::pet_animal2: + case INVENTORIES::pet_animal2: return LIST_PA1_TEXT; break; - case INVENTORIES::TInventory::pet_animal3: + case INVENTORIES::pet_animal3: return LIST_PA2_TEXT; break; - case INVENTORIES::TInventory::pet_animal4: + case INVENTORIES::pet_animal4: return LIST_PA3_TEXT; break; - case INVENTORIES::TInventory::player_room: + case INVENTORIES::player_room: return LIST_ROOM_TEXT;break; - case INVENTORIES::TInventory::guild: + case INVENTORIES::guild: return ClientCfg.ItemGroupAllowGuild ? LIST_GUILD_TEXT : ""; break; default: return "";