Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Seitz <theHamsta>2021-02-13 01:08:01 +0300
committerHans Goudey <h.goudey@me.com>2021-02-13 01:08:01 +0300
commit1065b413edfa9c6022ff2ae8734fef7e5ac50804 (patch)
tree46ed02241f4f5973d80aec9d29b96c42e4ce621b
parentcdb3cbd644013e466943f623f9080cfdb9ca6f12 (diff)
Cleanup: Fix clang compile warning
Use a reference instead of copying the string. Differential Revision: https://developer.blender.org/D10411
-rw-r--r--source/blender/nodes/geometry/node_geometry_util.cc2
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;
}