diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-09 14:52:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-09 14:52:19 +0300 |
commit | f661878450acdd32ebac6ee8c7680a09dbf8b9ec (patch) | |
tree | 3c2723a1333324edc5b8f4c08df16f10ca27050e /src/gui/viewport.cpp | |
parent | c66e0863ecc24145c57261987eb8e25776c303ce (diff) | |
download | manaplus-f661878450acdd32ebac6ee8c7680a09dbf8b9ec.tar.gz manaplus-f661878450acdd32ebac6ee8c7680a09dbf8b9ec.tar.bz2 manaplus-f661878450acdd32ebac6ee8c7680a09dbf8b9ec.tar.xz manaplus-f661878450acdd32ebac6ee8c7680a09dbf8b9ec.zip |
fix compilation warnings.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 9b31d6e13..cc0aa8778 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -405,7 +405,7 @@ bool Viewport::openContextMenu(MouseEvent &event) return false; } -bool Viewport::leftMouseAction(MouseEvent &event) +bool Viewport::leftMouseAction() { // Interact with some being if (mHoverBeing) @@ -518,7 +518,7 @@ void Viewport::mousePressed(MouseEvent &event) // Left click can cause different actions if (!mLongMouseClick && eventButton == MouseEvent::LEFT) { - if (leftMouseAction(event)) + if (leftMouseAction()) return; } else if (eventButton == MouseEvent::MIDDLE) @@ -683,7 +683,7 @@ void Viewport::mouseReleased(MouseEvent &event) } else { - if (leftMouseAction(event)) + if (leftMouseAction()) return; if (event.getSource() != this) return; |