summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-09 02:15:28 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-09 04:03:03 +0300
commit333745260338c876989744468a5f9c707e9bcc66 (patch)
tree46a2a99bd2b1a88810f016896a77d4ddd872ec63 /src/gui/gui.cpp
parente60ac0a6bc0fd662cb7a5834896b3953a1bd07e8 (diff)
downloadplus-333745260338c876989744468a5f9c707e9bcc66.tar.gz
plus-333745260338c876989744468a5f9c707e9bcc66.tar.bz2
plus-333745260338c876989744468a5f9c707e9bcc66.tar.xz
plus-333745260338c876989744468a5f9c707e9bcc66.zip
Fix code style.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp4
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.