diff options
Diffstat (limited to 'src/guichan/gui.cpp')
-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 810a983c4..3f5581424 100644 --- a/src/guichan/gui.cpp +++ b/src/guichan/gui.cpp @@ -417,7 +417,7 @@ namespace gcn while (parent) { - parent = (Widget*)widget->getParent(); + parent = static_cast<Widget*>(widget->getParent()); // Check if the widget is present in the "widget with mouse" queue. bool widgetIsPresentInQueue = false; @@ -450,7 +450,7 @@ namespace gcn Widget* swap = widget; widget = parent; - parent = (Widget*)swap->getParent(); + parent = static_cast<Widget*>(swap->getParent()); } if (mFocusHandler->getDraggedWidget()) @@ -683,7 +683,7 @@ namespace gcn if (!Widget::widgetExists(widget)) break; - parent = (Widget*)widget->getParent(); + parent = static_cast<Widget*>(widget->getParent()); if (widget->isEnabled() || force) { @@ -742,7 +742,7 @@ namespace gcn Widget* swap = widget; widget = parent; - parent = (Widget*)swap->getParent(); + parent = static_cast<Widget*>(swap->getParent()); // If a non modal focused widget has been reach // and we have modal focus cancel the distribution. @@ -786,7 +786,7 @@ namespace gcn if (!Widget::widgetExists(widget)) break; - parent = (Widget*)widget->getParent(); + parent = static_cast<Widget*>(widget->getParent()); if (widget->isEnabled()) { @@ -815,7 +815,7 @@ namespace gcn Widget* swap = widget; widget = parent; - parent = (Widget*)swap->getParent(); + parent = static_cast<Widget*>(swap->getParent()); // If a non modal focused widget has been reach // and we have modal focus cancel the distribution. @@ -928,7 +928,7 @@ namespace gcn while (parent) { - parent = (Widget*)widget->getParent(); + parent = static_cast<Widget*>(widget->getParent()); // Check if the widget is present in the "widget with mouse" queue. bool widgetIsPresentInQueue = false; @@ -960,7 +960,7 @@ namespace gcn Widget* swap = widget; widget = parent; - parent = (Widget*)swap->getParent(); + parent = static_cast<Widget*>(swap->getParent()); } } } |