From 333745260338c876989744468a5f9c707e9bcc66 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 9 Apr 2012 02:15:28 +0300 Subject: Fix code style. --- src/gui/gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/gui.cpp') 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(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(swap->getParent()); + parent = swap->getParent(); // If a non modal focused widget has been reach // and we have modal focus cancel the distribution. -- cgit v1.2.3-60-g2f50