diff options
author | bubnikv <bubnikv@gmail.com> | 2018-03-16 12:04:42 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-03-16 12:04:42 +0300 |
commit | 1b23f9cd6e8877fb0aa787d186ff1ed9c040e6a9 (patch) | |
tree | afc2b6eb8e45cb7d7297148f223dc96ffb736d9c /xs/src/libslic3r/TriangleMesh.cpp | |
parent | 4f0c6dd8799479997fb8d580c8684efd9a4e3c15 (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.cpp | 2 |
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); |