Author: mordante
Date: Fri Oct 21 20:59:39 2011
New Revision: 51568

URL: http://svn.gna.org/viewcvs/wesnoth?rev=51568&view=rev
Log:
Remove an old-style-cast.

Modified:
    trunk/src/whiteboard/action.hpp

Modified: trunk/src/whiteboard/action.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/action.hpp?rev=51568&r1=51567&r2=51568&view=diff
==============================================================================
--- trunk/src/whiteboard/action.hpp (original)
+++ trunk/src/whiteboard/action.hpp Fri Oct 21 20:59:39 2011
@@ -72,7 +72,10 @@
        /** Returns the index of the team that owns this action */
        size_t team_index() const { return team_index_; }
        /** Returns the number of the side that owns this action, i.e. the team 
index + 1. */
-       int side_number() const { return (int) team_index_ + 1; }
+       int side_number() const
+       {
+               return static_cast<int>(team_index_) + 1;
+       }
 
        /**
         * Indicates to an action whether its status is invalid, and whether it 
should change its


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

Reply via email to