From 1b23f9cd6e8877fb0aa787d186ff1ed9c040e6a9 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Fri, 16 Mar 2018 10:04:42 +0100 Subject: [PATCH] Fixing compilation errors: A non-const reference does not accept a temporary variable. --- xs/src/libslic3r/TriangleMesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/src/libslic3r/TriangleMesh.cpp b/xs/src/libslic3r/TriangleMesh.cpp index e5e2d59e8..aecb39662 100644 --- a/xs/src/libslic3r/TriangleMesh.cpp +++ b/xs/src/libslic3r/TriangleMesh.cpp @@ -990,7 +990,7 @@ void TriangleMeshSlicer::make_loops(std::vector &lines, Polygo struct OpenPolyline { OpenPolyline() {}; - OpenPolyline(IntersectionReference &start, IntersectionReference &end, Points &&points) : + OpenPolyline(const IntersectionReference &start, const IntersectionReference &end, Points &&points) : start(start), end(end), points(std::move(points)), consumed(false) {} void reverse() { std::swap(start, end);