From f880384018ee23efdc5cc072789e176208956a06 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 16 Feb 2014 13:56:14 +0300 Subject: Remove useless casts with KeyEvent. --- src/gui/windows/inventorywindow.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/gui/windows/inventorywindow.cpp') diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index 24b5cdab3..a1eb83e7a 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -615,20 +615,14 @@ void InventoryWindow::mouseExited(gcn::MouseEvent &event A_UNUSED) void InventoryWindow::keyPressed(KeyEvent &event) { - if (static_cast(&event)->getActionId() - == static_cast(Input::KEY_GUI_MOD)) - { + if (event.getActionId() == static_cast(Input::KEY_GUI_MOD)) mSplit = true; - } } void InventoryWindow::keyReleased(KeyEvent &event) { - if (static_cast(&event)->getActionId() - == static_cast(Input::KEY_GUI_MOD)) - { + if (event.getActionId() == static_cast(Input::KEY_GUI_MOD)) mSplit = false; - } } void InventoryWindow::valueChanged(const gcn::SelectionEvent &event A_UNUSED) -- cgit v1.2.3-60-g2f50