1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-13 08:24:27 +00:00

Move semantics for the ExPolygon constructor.

This commit is contained in:
bubnikv
2017-01-11 13:44:11 +01:00
parent bd3daeed5a
commit 87964eb57a
+6 -1
View File
@@ -13,9 +13,14 @@ typedef std::vector<ExPolygon> ExPolygons;
class ExPolygon
{
public:
public:
ExPolygon() {}
ExPolygon(const ExPolygon &other) : contour(other.contour), holes(other.holes) {}
ExPolygon(ExPolygon &&other) : contour(std::move(other.contour)), holes(std::move(other.holes)) {}
Polygon contour;
Polygons holes;
operator Points() const;
operator Polygons() const;
operator Polylines() const;