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:
authorHans Goudey <h.goudey@me.com>2021-12-06 21:49:37 +0300
committerHans Goudey <h.goudey@me.com>2021-12-06 21:49:37 +0300
commitc3c69fee092f4af179954a62208c852cff2cf5b2 (patch)
tree291e699b1dcb9095a4bd69196ed242e1c773ecdc /source/blender
parent86d520f2689f17a502b26d105d910480c9480bf0 (diff)
Cleanup: Fix warnings about copied Map loop variables
The `Map::items()` iterator does not return references.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_instance_on_points.cc2
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_instances_to_points.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_instance_on_points.cc b/source/blender/nodes/geometry/nodes/node_geo_instance_on_points.cc
index 4e75f1f60d9..6a661020bd9 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_instance_on_points.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_instance_on_points.cc
@@ -169,7 +169,7 @@ static void add_instances_from_component(
}
bke::CustomDataAttributes &instance_attributes = dst_component.attributes();
- for (const auto &item : attributes_to_propagate.items()) {
+ for (const auto item : attributes_to_propagate.items()) {
const AttributeIDRef &attribute_id = item.key;
const AttributeKind attribute_kind = item.value;
diff --git a/source/blender/nodes/geometry/nodes/node_geo_instances_to_points.cc b/source/blender/nodes/geometry/nodes/node_geo_instances_to_points.cc
index 536facbc2e5..8dc5b4cc7b9 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_instances_to_points.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_instances_to_points.cc
@@ -87,7 +87,7 @@ static void convert_instances_to_points(GeometrySet &geometry_set,
attributes_to_propagate.remove("position");
attributes_to_propagate.remove("radius");
- for (const auto &item : attributes_to_propagate.items()) {
+ for (const auto item : attributes_to_propagate.items()) {
const AttributeIDRef &attribute_id = item.key;
const AttributeKind attribute_kind = item.value;