Renamed config::get_children...

...so that people stop adding it again and again in new places.
This commit is contained in:
Guillaume Melquiond 2010-03-27 18:49:19 +00:00
parent 8f32240573
commit bd9937e53c
5 changed files with 7 additions and 7 deletions

View file

@ -151,7 +151,7 @@ void config::merge_children_by_attribute(const std::string& key, const std::stri
}
}
config::child_itors_bak config::child_range_bak(const std::string& key)
config::child_itors_bak config::child_range_deprecated(const std::string& key)
{
check_valid();
@ -197,7 +197,7 @@ size_t config::child_count(const std::string& key) const
return 0;
}
const config::child_list& config::get_children(const std::string& key) const
const config::child_list& config::get_children_deprecated(const std::string& key) const
{
check_valid();

View file

@ -214,12 +214,12 @@ public:
typedef std::pair<const_attribute_iterator,const_attribute_iterator> const_attr_itors;
typedef std::pair<child_list::iterator, child_list::iterator> child_itors_bak;
child_itors_bak child_range_bak(const std::string &);
child_itors_bak child_range_deprecated(const std::string &);
child_itors child_range(const std::string& key);
const_child_itors child_range(const std::string& key) const;
size_t child_count(const std::string& key) const;
const child_list& get_children(const std::string& key) const;
const child_list& get_children_deprecated(const std::string& key) const;
/**
* Copies the first child with the given @a key, or an empty config if there is none.

View file

@ -613,7 +613,7 @@ void replay::undo()
const config::child_list& replay::commands() const
{
return cfg_.get_children("command");
return cfg_.get_children_deprecated("command");
}
int replay::ncommands()

View file

@ -1067,7 +1067,7 @@ void unit::remove_temporary_modifications()
for(unsigned int i = 0; i != NumModificationTypes; ++i) {
const std::string& mod_name = ModificationTypes[i];
const config::child_list& mods = modifications_.get_children(mod_name);
const config::child_list& mods = modifications_.get_children_deprecated(mod_name);
for(size_t j = 0; j != mods.size(); ++j) {
const config& mod = *mods[j];
if(mod["duration"] != "forever" && mod["duration"] != "") {

View file

@ -736,5 +736,5 @@ config& variable_info::as_container() {
variable_info::array_range variable_info::as_array() {
assert(is_valid);
return vars->child_range_bak(key);
return vars->child_range_deprecated(key);
}