Fixing compilation errors: A non-const reference does not accept
a temporary variable.
This commit is contained in:
parent
4f0c6dd879
commit
1b23f9cd6e
1 changed files with 1 additions and 1 deletions
|
@ -990,7 +990,7 @@ void TriangleMeshSlicer::make_loops(std::vector<IntersectionLine> &lines, Polygo
|
||||||
|
|
||||||
struct OpenPolyline {
|
struct OpenPolyline {
|
||||||
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) {}
|
start(start), end(end), points(std::move(points)), consumed(false) {}
|
||||||
void reverse() {
|
void reverse() {
|
||||||
std::swap(start, end);
|
std::swap(start, end);
|
||||||
|
|
Loading…
Add table
Reference in a new issue