mail[Wesnoth-commits] r43361 - /trunk/src/game_preferences_display.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:57:
Author: silene
Date: Sat Jun 12 20:57:43 2010
New Revision: 43361

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

Modified:
    trunk/src/game_preferences_display.cpp

Modified: trunk/src/game_preferences_display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_preferences_display.cpp?rev=43361&r1=43360&r2=43361&view=diff
==============================================================================
--- trunk/src/game_preferences_display.cpp (original)
+++ trunk/src/game_preferences_display.cpp Sat Jun 12 20:57:43 2010
@@ -992,7 +992,7 @@
                                        
advanced_slider_label_.set_help_string(description);
                                        
advanced_slider_.set_min(lexical_cast<int>(pref["min"]));
                                        
advanced_slider_.set_max(lexical_cast<int>(pref["max"]));
-                                       
advanced_slider_.set_increment(lexical_cast_default<int>(pref["step"], 1));
+                                       
advanced_slider_.set_increment(pref["step"].to_int(1));
                                        
advanced_slider_.set_value(lexical_cast<int>(value));
                                        
advanced_slider_.set_help_string(description);
                                }




Related Messages


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