diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-30 22:15:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-30 22:15:24 +0300 |
commit | d70d41864853924a456595875b6811b74222dd7c (patch) | |
tree | 99485951528734a54cd2f8ad297e76860f7ba9d4 /src/gui/widgets/itemcontainer.cpp | |
parent | a619290b502486ea5b1ff5dd604864ab78c5edc9 (diff) | |
download | manaplus-d70d41864853924a456595875b6811b74222dd7c.tar.gz manaplus-d70d41864853924a456595875b6811b74222dd7c.tar.bz2 manaplus-d70d41864853924a456595875b6811b74222dd7c.tar.xz manaplus-d70d41864853924a456595875b6811b74222dd7c.zip |
Fix code style.
Diffstat (limited to 'src/gui/widgets/itemcontainer.cpp')
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index 915116491..64c1ad50a 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -427,6 +427,7 @@ void ItemContainer::mousePressed(MouseEvent &event) src = DRAGDROP_SOURCE_CART; break; default: + case InventoryType::TYPE_END: break; } if (mSelectedIndex == index && mClicks != 2) @@ -525,6 +526,7 @@ void ItemContainer::mouseReleased(MouseEvent &event) dst = DRAGDROP_SOURCE_CART; break; default: + case InventoryType::TYPE_END: break; } int srcContainer = -1; @@ -561,7 +563,7 @@ void ItemContainer::mouseReleased(MouseEvent &event) inventory = PlayerInfo::getCartInventory(); } else if (src == DRAGDROP_SOURCE_CART - && dst == DRAGDROP_SOURCE_STORAGE) + && dst == DRAGDROP_SOURCE_STORAGE) { srcContainer = InventoryType::CART; dstContainer = InventoryType::STORAGE; |