mail[Wesnoth-commits] r43369 - /trunk/src/gui/auxiliary/window_builder/toggle_panel.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:15 2010
New Revision: 43369

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

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

Modified: trunk/src/gui/auxiliary/window_builder/toggle_panel.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/auxiliary/window_builder/toggle_panel.cpp?rev=43369&r1=43368&r2=43369&view=diff
==============================================================================
--- trunk/src/gui/auxiliary/window_builder/toggle_panel.cpp (original)
+++ trunk/src/gui/auxiliary/window_builder/toggle_panel.cpp Sat Jun 12 
20:58:15 2010
@@ -31,7 +31,7 @@
        : tbuilder_control(cfg)
        , grid(NULL)
        , retval_id_(cfg["return_value_id"])
-       , retval_(lexical_cast_default<int>(cfg["return_value"]))
+       , retval_(cfg["return_value"])
 {
        const config &c = cfg.child("grid");
 




Related Messages


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