Move semantics for the ExPolygon constructor.
This commit is contained in:
parent
bd3daeed5a
commit
87964eb57a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user