Cleanup: Fix warnings about copied Map loop variables
The `Map::items()` iterator does not return references.
This commit is contained in:
parent
86d520f268
commit
c3c69fee09
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue