summaryrefslogtreecommitdiff
path: root/src/guichan/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-12-02 23:06:48 +0300
committerAndrei Karas <akaras@inbox.ru>2011-12-02 23:06:48 +0300
commit5acadea119fc2a89e944dc9431e298e5e9544770 (patch)
tree5199e73d8b924cb4ca3324f0f17a1a6696301d77 /src/guichan/gui.cpp
parentbf41736950d9e22be8b2b201dcd4833a50b26a99 (diff)
downloadplus-5acadea119fc2a89e944dc9431e298e5e9544770.tar.gz
plus-5acadea119fc2a89e944dc9431e298e5e9544770.tar.bz2
plus-5acadea119fc2a89e944dc9431e298e5e9544770.tar.xz
plus-5acadea119fc2a89e944dc9431e298e5e9544770.zip
Fix some issues after automatic code checking.
Diffstat (limited to 'src/guichan/gui.cpp')
-rw-r--r--src/guichan/gui.cpp16
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());
}
}
}