Use range iterators for Map
This commit is contained in:
parent
e4dfa69bcf
commit
c63b18507d
154 changed files with 1897 additions and 1897 deletions
|
|
@ -63,9 +63,9 @@ void BackgroundProgress::_add_task(const String &p_task, const String &p_label,
|
|||
void BackgroundProgress::_update() {
|
||||
_THREAD_SAFE_METHOD_
|
||||
|
||||
for (Map<String, int>::Element *E = updates.front(); E; E = E->next()) {
|
||||
if (tasks.has(E->key())) {
|
||||
_task_step(E->key(), E->get());
|
||||
for (const KeyValue<String, int> &E : updates) {
|
||||
if (tasks.has(E.key)) {
|
||||
_task_step(E.key, E.value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue