From 1065b413edfa9c6022ff2ae8734fef7e5ac50804 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Fri, 12 Feb 2021 16:08:01 -0600 Subject: Cleanup: Fix clang compile warning Use a reference instead of copying the string. Differential Revision: https://developer.blender.org/D10411 --- source/blender/nodes/geometry/node_geometry_util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 &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; } -- cgit v1.2.3