diff options
author | Stephan Seitz <theHamsta> | 2021-02-13 01:08:01 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-02-13 01:08:01 +0300 |
commit | 1065b413edfa9c6022ff2ae8734fef7e5ac50804 (patch) | |
tree | 46ed02241f4f5973d80aec9d29b96c42e4ce621b /source | |
parent | cdb3cbd644013e466943f623f9080cfdb9ca6f12 (diff) |
Cleanup: Fix clang compile warning
Use a reference instead of copying the string.
Differential Revision: https://developer.blender.org/D10411
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/nodes/geometry/node_geometry_util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/geometry/node_geometry_util.cc b/source/blender/nodes/geometry/node_geometry_util.cc index 3e30658e056..c0f8fbade49 100644 --- a/source/blender/nodes/geometry/node_geometry_util.cc +++ b/source/blender/nodes/geometry/node_geometry_util.cc @@ -38,7 +38,7 @@ void gather_attribute_info(Map<std::string, AttributeInfo> &attributes, } const GeometryComponent &component = *set.get_component_for_read(component_type); - for (const std::string name : component.attribute_names()) { + for (const std::string &name : component.attribute_names()) { if (ignored_attributes.contains(name)) { continue; } |