diff --git a/src/FffGcodeWriter.cpp b/src/FffGcodeWriter.cpp index b310b13c88..a736d1a900 100644 --- a/src/FffGcodeWriter.cpp +++ b/src/FffGcodeWriter.cpp @@ -2067,7 +2067,7 @@ void getBestAngledLinesToSupportPoints(OpenLinesSet& result_lines, const Shape& void integrateSupportingLine(OpenLinesSet& infill_lines, const OpenPolyline& line_to_add) { // Returns the line index and the index of the point within an infill_line, null for no match found. - const auto findMatchingSegment = [&](Point2LL p) -> std::optional> + const auto findMatchingSegment = [&](const Point2LL& p) -> std::optional> { for (size_t i = 0; i < infill_lines.size(); ++i) {