mail[Wesnoth-commits] r44623 - 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:59 2010
New Revision: 44623

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44623&view=rev
Log:
Added another preference helper.

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=44623&r1=44622&r2=44623&view=diff
==============================================================================
--- trunk/src/preferences.cpp (original)
+++ trunk/src/preferences.cpp Sat Jul 24 10:47:59 2010
@@ -98,6 +98,11 @@
 }
 
 void set(const std::string &key, bool value)
+{
+       prefs[key] = value;
+}
+
+void set(const std::string &key, int value)
 {
        prefs[key] = value;
 }

Modified: trunk/src/preferences.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/preferences.hpp?rev=44623&r1=44622&r2=44623&view=diff
==============================================================================
--- trunk/src/preferences.hpp (original)
+++ trunk/src/preferences.hpp Sat Jul 24 10:47:59 2010
@@ -41,6 +41,7 @@
        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 set(const std::string &key, int value);
        void clear(const std::string& key);
        void set_child(const std::string& key, const config& val);
        const config &get_child(const std::string &key);




Related Messages


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