Use range iterators for Map
This commit is contained in:
parent
e4dfa69bcf
commit
c63b18507d
154 changed files with 1897 additions and 1897 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue