From ebcd20a02d04e5f4a36fc30fabbca45d023d5b6f Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 25 Oct 2024 08:35:05 +0200 Subject: [PATCH] Add comment as suggested by review CURA-12175 --- src/LayerPlan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LayerPlan.cpp b/src/LayerPlan.cpp index 232bad63e5..1cc3656ae7 100644 --- a/src/LayerPlan.cpp +++ b/src/LayerPlan.cpp @@ -1244,7 +1244,7 @@ std::vector for (const auto& reversed_chunk : paths | ranges::views::enumerate | ranges::views::reverse | ranges::views::chunk_by( - [](const auto&path_a, const auto&path_b) + [](const auto& path_a, const auto& path_b) { return (! std::get<1>(path_a).isTravelPath()) || std::get<1>(path_b).isTravelPath(); })) @@ -1293,7 +1293,7 @@ std::vector path_coasting = { ApplyCoasting::PartialCoasting, point_idx, coasting_start_pos }; chunk_coasting_point_reached = true; } - else if (point_idx == 0) + else if (point_idx == 0) // End of path reached (reverse iteration), coasting not fulfilled { path_coasting.apply_coasting = ApplyCoasting::CoastEntirePath; }