diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-09 02:15:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-09 04:03:03 +0300 |
commit | 333745260338c876989744468a5f9c707e9bcc66 (patch) | |
tree | 46a2a99bd2b1a88810f016896a77d4ddd872ec63 /src/gui/gui.cpp | |
parent | e60ac0a6bc0fd662cb7a5834896b3953a1bd07e8 (diff) | |
download | manaverse-333745260338c876989744468a5f9c707e9bcc66.tar.gz manaverse-333745260338c876989744468a5f9c707e9bcc66.tar.bz2 manaverse-333745260338c876989744468a5f9c707e9bcc66.tar.xz manaverse-333745260338c876989744468a5f9c707e9bcc66.zip |
Fix code style.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 19361cf2d..e45bc71c0 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -492,7 +492,7 @@ void Gui::distributeMouseEvent(gcn::Widget* source, int type, int button, if (!gcn::Widget::widgetExists(widget)) break; - parent = static_cast<gcn::Widget*>(widget->getParent()); + parent = widget->getParent(); if (widget->isEnabled() || force) { @@ -551,7 +551,7 @@ void Gui::distributeMouseEvent(gcn::Widget* source, int type, int button, gcn::Widget* swap = widget; widget = parent; - parent = static_cast<gcn::Widget*>(swap->getParent()); + parent = swap->getParent(); // If a non modal focused widget has been reach // and we have modal focus cancel the distribution. |