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/guichan | |
parent | e60ac0a6bc0fd662cb7a5834896b3953a1bd07e8 (diff) | |
download | manaplus-333745260338c876989744468a5f9c707e9bcc66.tar.gz manaplus-333745260338c876989744468a5f9c707e9bcc66.tar.bz2 manaplus-333745260338c876989744468a5f9c707e9bcc66.tar.xz manaplus-333745260338c876989744468a5f9c707e9bcc66.zip |
Fix code style.
Diffstat (limited to 'src/guichan')
-rw-r--r-- | src/guichan/gui.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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*>(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<Widget*>(swap->getParent()); + parent = swap->getParent(); } if (mFocusHandler->getDraggedWidget()) @@ -608,7 +608,7 @@ namespace gcn if (!Widget::widgetExists(widget)) break; - parent = static_cast<Widget*>(widget->getParent()); + parent = widget->getParent(); if (widget->isEnabled() || force) { @@ -667,7 +667,7 @@ namespace gcn Widget* swap = widget; widget = parent; - parent = static_cast<Widget*>(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*>(widget->getParent()); + parent = widget->getParent(); if (widget->isEnabled()) { @@ -740,7 +740,7 @@ namespace gcn Widget* swap = widget; widget = parent; - parent = static_cast<Widget*>(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*>(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<Widget*>(swap->getParent()); + parent = swap->getParent(); } } } |