1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-12 08:14:26 +00:00

Fixing compilation errors: A non-const reference does not accept

a temporary variable.
This commit is contained in:
bubnikv
2018-03-16 10:04:42 +01:00
parent 4f0c6dd879
commit 1b23f9cd6e
+1 -1
View File
@@ -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);