Use range iterators for Map

This commit is contained in:
Lightning_A 2021-08-09 14:13:42 -06:00
parent e4dfa69bcf
commit c63b18507d
154 changed files with 1897 additions and 1897 deletions

View file

@ -540,9 +540,9 @@ void ResourceCache::dump(const char *p_file, bool p_short) {
}
}
for (Map<String, int>::Element *E = type_count.front(); E; E = E->next()) {
for (const KeyValue<String, int> &E : type_count) {
if (f) {
f->store_line(E->key() + " count: " + itos(E->get()));
f->store_line(E.key + " count: " + itos(E.value));
}
}
if (f) {