Author: mordante
Date: Fri Oct 21 20:59:14 2011
New Revision: 51561

URL: http://svn.gna.org/viewcvs/wesnoth?rev=51561&view=rev
Log:
Remove some old-style-casts.

Modified:
    trunk/src/gui/widgets/widget.cpp

Modified: trunk/src/gui/widgets/widget.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/widget.cpp?rev=51561&r1=51560&r2=51561&view=diff
==============================================================================
--- trunk/src/gui/widgets/widget.cpp (original)
+++ trunk/src/gui/widgets/widget.cpp Fri Oct 21 20:59:14 2011
@@ -42,12 +42,12 @@
        , last_best_size_(tpoint(0,0))
 #endif
 {
-       DBG_GUI_LF << "widget create: " << (void*)this << "\n";
+       DBG_GUI_LF << "widget create: " << static_cast<void*>(this) << "\n";
 }
 
 twidget::~twidget()
 {
-       DBG_GUI_LF << "widget destroy: " << (void*)this
+       DBG_GUI_LF << "widget destroy: " << static_cast<void*>(this)
                << " (id: " << id_ << ", definition: " << definition_ << ")\n";
 
        twidget* p = parent();
@@ -65,7 +65,8 @@
 
 void twidget::set_id(const std::string& id)
 {
-       DBG_GUI_LF << "set id of " << (void*)this << " to '" << id << "' "
+       DBG_GUI_LF << "set id of " << static_cast<void*>(this)
+               << " to '" << id << "' "
                << "(was '" << id_ << "'). Widget type: " <<
                (dynamic_cast<tcontrol*>(this) ?
                        dynamic_cast<tcontrol*>(this)->get_control_type()


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to