diff options
| author | Karroffel | 2017-11-04 14:08:21 +0100 |
|---|---|---|
| committer | Karroffel | 2017-11-04 14:08:21 +0100 |
| commit | 1386647cdf1c4278c4437523cc2b8be48c77351e (patch) | |
| tree | 55befe2b8f5ad1924bfba63a4f4308d26b0946de /core/io/config_file.cpp | |
| parent | 9aebdd2ae8b32ab8e73371637d330b8d0e64ec54 (diff) | |
| download | godot-1386647cdf1c4278c4437523cc2b8be48c77351e.tar.gz godot-1386647cdf1c4278c4437523cc2b8be48c77351e.tar.zst godot-1386647cdf1c4278c4437523cc2b8be48c77351e.zip | |
Diffstat (limited to 'core/io/config_file.cpp')
| -rw-r--r-- | core/io/config_file.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/io/config_file.cpp b/core/io/config_file.cpp index b5d41bacb..2b6015083 100644 --- a/core/io/config_file.cpp +++ b/core/io/config_file.cpp @@ -106,8 +106,8 @@ bool ConfigFile::has_section_key(const String &p_section, const String &p_key) c void ConfigFile::get_sections(List<String> *r_sections) const { - for (const Map<String, OrderedHashMap<String, Variant> >::Element *E = values.front(); E; E = E->next()) { - r_sections->push_back(E->key()); + for (OrderedHashMap<String, OrderedHashMap<String, Variant> >::ConstElement E = values.front(); E; E = E.next()) { + r_sections->push_back(E.key()); } } void ConfigFile::get_section_keys(const String &p_section, List<String> *r_keys) const { @@ -135,13 +135,13 @@ Error ConfigFile::save(const String &p_path) { return err; } - for (Map<String, OrderedHashMap<String, Variant> >::Element *E = values.front(); E; E = E->next()) { + for (OrderedHashMap<String, OrderedHashMap<String, Variant> >::Element E = values.front(); E; E = E.next()) { if (E != values.front()) file->store_string("\n"); - file->store_string("[" + E->key() + "]\n\n"); + file->store_string("[" + E.key() + "]\n\n"); - for (OrderedHashMap<String, Variant>::Element F = E->get().front(); F; F = F.next()) { + for (OrderedHashMap<String, Variant>::Element F = E.get().front(); F; F = F.next()) { String vstr; VariantWriter::write_to_string(F.get(), vstr); |
