Author: silene
Date: Sat Apr 4 19:51:00 2009
New Revision: 34486
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34486&view=rev
Log:
Removed last bits of implementation from config interface.
Modified:
trunk/src/config.cpp
trunk/src/config.hpp
Modified: trunk/src/config.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/config.cpp?rev=34486&r1=34485&r2=34486&view=diff
==============================================================================
--- trunk/src/config.cpp (original)
+++ trunk/src/config.cpp Sat Apr 4 19:51:00 2009
@@ -59,6 +59,16 @@
append(cfg);
return *this;
+}
+
+bool config::has_attribute(const std::string &key) const
+{
+ return values.find(key) != values.end();
+}
+
+void config::remove_attribute(const std::string &key)
+{
+ values.erase(key);
}
void config::append(const config& cfg)
Modified: trunk/src/config.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/config.hpp?rev=34486&r1=34485&r2=34486&view=diff
==============================================================================
--- trunk/src/config.hpp (original)
+++ trunk/src/config.hpp Sat Apr 4 19:51:00 2009
@@ -182,8 +182,8 @@
config &child_or_add(const std::string &key);
const t_string& get_attribute(const std::string& key) const;
- bool has_attribute(const std::string& key) const {return
values.find(key) != values.end();}
- void remove_attribute(const std::string& key) {values.erase(key);}
+ bool has_attribute(const std::string &key) const;
+ void remove_attribute(const std::string &key);
void merge_attributes(const config &);
const_attr_itors attribute_range() const;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits