Cleanup: Fix clang compile warning

Use a reference instead of copying the string.

Differential Revision: https://developer.blender.org/D10411
This commit is contained in:
Stephan Seitz
2021-02-12 16:08:01 -06:00
committed by Hans Goudey
parent cdb3cbd644
commit 1065b413ed

View File

@@ -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;
}