1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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

@@ -119,10 +119,10 @@ ShaderWarning::CodeFlags ShaderWarning::get_flags_from_codemap(const Map<Code, b
init_code_to_flags_map();
}
for (Map<Code, bool>::Element *E = p_map.front(); E; E = E->next()) {
if (E->get()) {
ERR_FAIL_COND_V(!code_to_flags_map->has((int)E->key()), ShaderWarning::NONE_FLAG);
result |= (*code_to_flags_map)[(int)E->key()];
for (const KeyValue<Code, bool> &E : p_map) {
if (E.value) {
ERR_FAIL_COND_V(!code_to_flags_map->has((int)E.key), ShaderWarning::NONE_FLAG);
result |= (*code_to_flags_map)[(int)E.key];
}
}
return (CodeFlags)result;