Move semantics for the ExPolygon constructor.

This commit is contained in:
bubnikv 2017-01-11 13:44:11 +01:00
parent bd3daeed5a
commit 87964eb57a

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;