From c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 16 Apr 2016 16:18:29 +0300 Subject: Move itemamountwindowusage enum into separate file. Also convert it to strong typed enum. --- src/actions/actions.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/actions') diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index a51dab201..1f7df9c9d 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -462,7 +462,7 @@ impHandler(dropItemId) if (item && !PlayerInfo::isItemProtected(item->getId())) { - ItemAmountWindow::showWindow(ItemAmountWindow::ItemDrop, + ItemAmountWindow::showWindow(ItemAmountWindowUsage::ItemDrop, inventoryWindow, item); } return true; @@ -473,7 +473,7 @@ impHandler(dropItemInv) Item *const item = getItemByInvIndex(event, InventoryType::Inventory); if (item && !PlayerInfo::isItemProtected(item->getId())) { - ItemAmountWindow::showWindow(ItemAmountWindow::ItemDrop, + ItemAmountWindow::showWindow(ItemAmountWindowUsage::ItemDrop, inventoryWindow, item); } return true; @@ -1590,7 +1590,7 @@ impHandler(invToStorage) } else { - ItemAmountWindow::showWindow(ItemAmountWindow::StoreAdd, + ItemAmountWindow::showWindow(ItemAmountWindowUsage::StoreAdd, inventoryWindow, item); } return true; @@ -1611,7 +1611,7 @@ impHandler(tradeAdd) } else { - ItemAmountWindow::showWindow(ItemAmountWindow::TradeAdd, + ItemAmountWindow::showWindow(ItemAmountWindowUsage::TradeAdd, tradeWindow, item); } return true; @@ -1633,7 +1633,7 @@ impHandler(storageToInv) } else { - ItemAmountWindow::showWindow(ItemAmountWindow::StoreRemove, + ItemAmountWindow::showWindow(ItemAmountWindowUsage::StoreRemove, storageWindow, item); } return true; -- cgit v1.2.3-60-g2f50