mail[Wesnoth-commits] r40143 - in /trunk/src: game_preferences.cpp menu_events.cpp


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

Header


Content

Posted by guillaume . melquiond on December 06, 2009 - 14:36:
Author: silene
Date: Sun Dec  6 14:36:05 2009
New Revision: 40143

URL: http://svn.gna.org/viewcvs/wesnoth?rev=40143&view=rev
Log:
Made use of unused function preferences::set_custom_command.

Modified:
    trunk/src/game_preferences.cpp
    trunk/src/menu_events.cpp

Modified: trunk/src/game_preferences.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_preferences.cpp?rev=40143&r1=40142&r2=40143&view=diff
==============================================================================
--- trunk/src/game_preferences.cpp (original)
+++ trunk/src/game_preferences.cpp Sun Dec  6 14:36:05 2009
@@ -818,7 +818,7 @@
 }
 
 void set_custom_command(const std::string& command) {
-       return preferences::set("custom_command", command);
+       preferences::set("custom_command", command);
 }
 
 /**

Modified: trunk/src/menu_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/menu_events.cpp?rev=40143&r1=40142&r2=40143&view=diff
==============================================================================
--- trunk/src/menu_events.cpp (original)
+++ trunk/src/menu_events.cpp Sun Dec  6 14:36:05 2009
@@ -3132,7 +3132,7 @@
        game_events::commit();
 }
 void console_handler::do_custom() {
-       preferences::set("custom_command", get_data());
+       preferences::set_custom_command(get_data());
 }
 void console_handler::do_set_alias() {
        const std::string data = get_data();




Related Messages


Powered by MHonArc, Updated Sun Dec 06 14:40:06 2009