mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Use const references where possible for List range iterators
This commit is contained in:
parent
a0f7f42b84
commit
ac3322b0af
171 changed files with 649 additions and 650 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue