You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Use const references where possible for List range iterators
This commit is contained in:
@@ -388,7 +388,7 @@ protected:
|
||||
versions.clear();
|
||||
List<Variant> keys;
|
||||
p_versions.get_key_list(&keys);
|
||||
for (Variant &E : keys) {
|
||||
for (const Variant &E : keys) {
|
||||
StringName name = E;
|
||||
Ref<RDShaderBytecode> bc = p_versions[E];
|
||||
ERR_CONTINUE(bc.is_null());
|
||||
|
||||
Reference in New Issue
Block a user