diff options
author | Chuck Miller <shadowmil@gmail.com> | 2010-11-11 23:12:29 -0500 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2010-11-11 23:12:29 -0500 |
commit | a4640305fd0d88c6332112712aa69e496368e01b (patch) | |
tree | 0f039b331026ca2b9718a920b24e2344f9e56b25 /src/gui/itemamount.cpp | |
parent | 5727a2d9eeb0688a16e5b7fe32f6d9836c4f7a4e (diff) | |
download | mana-client-a4640305fd0d88c6332112712aa69e496368e01b.tar.gz mana-client-a4640305fd0d88c6332112712aa69e496368e01b.tar.bz2 mana-client-a4640305fd0d88c6332112712aa69e496368e01b.tar.xz mana-client-a4640305fd0d88c6332112712aa69e496368e01b.zip |
Replace Event names with enums instead of strings
Diffstat (limited to 'src/gui/itemamount.cpp')
-rw-r--r-- | src/gui/itemamount.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/itemamount.cpp b/src/gui/itemamount.cpp index bb8f95d0..85325c66 100644 --- a/src/gui/itemamount.cpp +++ b/src/gui/itemamount.cpp @@ -47,14 +47,14 @@ void ItemAmountWindow::finish(Item *item, int amount, Usage usage) tradeWindow->tradeItem(item, amount); break; case ItemDrop: - item->doEvent("doDrop", amount); + item->doEvent(EVENT_DODROP, amount); break; case ItemSplit: - item->doEvent("doSplit", amount); + item->doEvent(EVENT_DOSPLIT, amount); break; case StoreAdd: { - Mana::Event event("doMove"); + Mana::Event event(EVENT_DOMOVE); event.setItem("item", item); event.setInt("amount", amount); event.setInt("source", Inventory::INVENTORY); @@ -64,7 +64,7 @@ void ItemAmountWindow::finish(Item *item, int amount, Usage usage) break; case StoreRemove: { - Mana::Event event("doMove"); + Mana::Event event(EVENT_DOMOVE); event.setItem("item", item); event.setInt("amount", amount); event.setInt("source", Inventory::STORAGE); |