You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Use range iterators for Map
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user