You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Use const references where possible for List range iterators
This commit is contained in:
@@ -278,7 +278,7 @@ void ShaderMaterial::get_argument_options(const StringName &p_function, int p_id
|
||||
if (shader.is_valid()) {
|
||||
List<PropertyInfo> pl;
|
||||
shader->get_param_list(&pl);
|
||||
for (PropertyInfo &E : pl) {
|
||||
for (const PropertyInfo &E : pl) {
|
||||
r_options->push_back(quote_style + E.name.replace_first("shader_param/", "") + quote_style);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user