mail[Wesnoth-commits] r43368 - /trunk/src/gui/auxiliary/window_builder/toggle_button.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on June 12, 2010 - 20:58:
Author: silene
Date: Sat Jun 12 20:58:10 2010
New Revision: 43368

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43368&view=rev
Log:
Avoided costly roundtrip through strings.

Modified:
    trunk/src/gui/auxiliary/window_builder/toggle_button.cpp

Modified: trunk/src/gui/auxiliary/window_builder/toggle_button.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/auxiliary/window_builder/toggle_button.cpp?rev=43368&r1=43367&r2=43368&view=diff
==============================================================================
--- trunk/src/gui/auxiliary/window_builder/toggle_button.cpp (original)
+++ trunk/src/gui/auxiliary/window_builder/toggle_button.cpp Sat Jun 12 
20:58:10 2010
@@ -29,7 +29,7 @@
        : tbuilder_control(cfg)
        , icon_name_(cfg["icon"])
        , retval_id_(cfg["return_value_id"])
-       , retval_(lexical_cast_default<int>(cfg["return_value"]))
+       , retval_(cfg["return_value"])
 {
 }
 




Related Messages


Powered by MHonArc, Updated Sat Jun 12 21:00:13 2010