Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2018-03-16 12:04:42 +0300
committerbubnikv <bubnikv@gmail.com>2018-03-16 12:04:42 +0300
commit1b23f9cd6e8877fb0aa787d186ff1ed9c040e6a9 (patch)
treeafc2b6eb8e45cb7d7297148f223dc96ffb736d9c /xs/src/libslic3r/TriangleMesh.cpp
parent4f0c6dd8799479997fb8d580c8684efd9a4e3c15 (diff)
Fixing compilation errors: A non-const reference does not accept
a temporary variable.
Diffstat (limited to 'xs/src/libslic3r/TriangleMesh.cpp')
-rw-r--r--xs/src/libslic3r/TriangleMesh.cpp2
1 files changed, 1 insertions, 1 deletions
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<IntersectionLine> &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);