Author: mordante
Date: Fri Oct 21 20:59:04 2011
New Revision: 51558

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

Modified:
    trunk/src/gui/auxiliary/event/dispatcher_private.hpp

Modified: trunk/src/gui/auxiliary/event/dispatcher_private.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/auxiliary/event/dispatcher_private.hpp?rev=51558&r1=51557&r2=51558&view=diff
==============================================================================
--- trunk/src/gui/auxiliary/event/dispatcher_private.hpp (original)
+++ trunk/src/gui/auxiliary/event/dispatcher_private.hpp Fri Oct 21 20:59:04 
2011
@@ -222,8 +222,11 @@
                        return functor.template oper<item>(event);
                } else {
                        typedef typename boost::mpl::next<itor>::type titor;
-                       return find<boost::is_same<titor, end>::value>
-                               ::execute((titor*)0, (end*)0, event, functor);
+                       return find<boost::is_same<titor, end>::value>::execute(
+                                         static_cast<titor*>(NULL)
+                                       , static_cast<end*>(NULL)
+                                       , event
+                                       , functor);
                }
        }
 };
@@ -260,8 +263,11 @@
        typedef typename boost::mpl::begin<sequence>::type begin;
        typedef typename boost::mpl::end<sequence>::type end;
 
-       return implementation::find<boost::is_same<begin, end>::value>
-               ::execute((begin*)0, (end*)0, event, functor);
+       return implementation::find<boost::is_same<begin, end>::value>::execute(
+                         static_cast<begin*>(NULL)
+                       , static_cast<end*>(NULL)
+                       , event
+                       , functor);
 }
 
 namespace implementation {


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

Reply via email to