You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Use const references where possible for List range iterators
This commit is contained in:
@@ -98,7 +98,7 @@ void NativeScript::_update_placeholder(PlaceHolderScriptInstance *p_placeholder)
|
||||
List<PropertyInfo> info;
|
||||
get_script_property_list(&info);
|
||||
Map<StringName, Variant> values;
|
||||
for (PropertyInfo &E : info) {
|
||||
for (const PropertyInfo &E : info) {
|
||||
Variant value;
|
||||
get_property_default_value(E.name, value);
|
||||
values[E.name] = value;
|
||||
|
||||
Reference in New Issue
Block a user