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/guichan/gui.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/guichan') diff --git a/src/guichan/gui.cpp b/src/guichan/gui.cpp index bd811014f..c96c61737 100644 --- a/src/guichan/gui.cpp +++ b/src/guichan/gui.cpp @@ -340,7 +340,7 @@ namespace gcn while (parent) { - parent = static_cast(widget->getParent()); + parent = widget->getParent(); // Check if the widget is present in the "widget with mouse" queue. bool widgetIsPresentInQueue = false; @@ -373,7 +373,7 @@ namespace gcn Widget* swap = widget; widget = parent; - parent = static_cast(swap->getParent()); + parent = swap->getParent(); } if (mFocusHandler->getDraggedWidget()) @@ -608,7 +608,7 @@ namespace gcn if (!Widget::widgetExists(widget)) break; - parent = static_cast(widget->getParent()); + parent = widget->getParent(); if (widget->isEnabled() || force) { @@ -667,7 +667,7 @@ namespace 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. @@ -711,7 +711,7 @@ namespace gcn if (!Widget::widgetExists(widget)) break; - parent = static_cast(widget->getParent()); + parent = widget->getParent(); if (widget->isEnabled()) { @@ -740,7 +740,7 @@ namespace 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. @@ -853,7 +853,7 @@ namespace gcn while (parent) { - parent = static_cast(widget->getParent()); + parent = widget->getParent(); // Check if the widget is present in the "widget with mouse" queue. bool widgetIsPresentInQueue = false; @@ -885,7 +885,7 @@ namespace gcn Widget* swap = widget; widget = parent; - parent = static_cast(swap->getParent()); + parent = swap->getParent(); } } } -- cgit v1.2.3-70-g09d2