mail[Wesnoth-commits] r44622 - in /trunk/src: preferences.cpp preferences.hpp


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

Header


Content

Posted by guillaume . melquiond on July 24, 2010 - 10:47:
Author: silene
Date: Sat Jul 24 10:47:54 2010
New Revision: 44622

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44622&view=rev
Log:
Fixed clock displayed as 'yes'.

Modified:
    trunk/src/preferences.cpp
    trunk/src/preferences.hpp

Modified: trunk/src/preferences.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/preferences.cpp?rev=44622&r1=44621&r2=44622&view=diff
==============================================================================
--- trunk/src/preferences.cpp (original)
+++ trunk/src/preferences.cpp Sat Jul 24 10:47:54 2010
@@ -98,6 +98,11 @@
 }
 
 void set(const std::string &key, bool value)
+{
+       prefs[key] = value;
+}
+
+void set(const std::string &key, char const *value)
 {
        prefs[key] = value;
 }

Modified: trunk/src/preferences.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/preferences.hpp?rev=44622&r1=44621&r2=44622&view=diff
==============================================================================
--- trunk/src/preferences.hpp (original)
+++ trunk/src/preferences.hpp Sat Jul 24 10:47:54 2010
@@ -38,8 +38,8 @@
 
        void write_preferences();
 
-       // Low-level, should be seen only by preferences_display ?
        void set(const std::string& key, const std::string &value);
+       void set(const std::string& key, char const *value);
        void set(const std::string &key, bool value);
        void clear(const std::string& key);
        void set_child(const std::string& key, const config& val);




Related Messages


Powered by MHonArc, Updated Sat Jul 24 11:00:13 2010