Skip to content

Commit

Permalink
Save a copy by using const-ref.
Browse files Browse the repository at this point in the history
done as part of CURA-11875

Co-authored-by: Erwan MATHIEU <[email protected]>
  • Loading branch information
rburema and wawanbreton committed Jul 16, 2024
1 parent 1d310b8 commit 807eb6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TreeSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,7 @@ void TreeSupport::filterFloatingLines(std::vector<Shape>& support_layer_storage)
return;
}

const Shape relevant_forbidden = volumes_.getCollision(0, layer_idx, true);
const Shape& relevant_forbidden = volumes_.getCollision(0, layer_idx, true);
Shape outer_walls = TreeSupportUtils::toPolylines(support_layer_storage[layer_idx - 1].getOutsidePolygons()).createTubeShape(closing_dist, 0);

Shape holes_below;
Expand Down

0 comments on commit 807eb6a

Please sign in to comment.