From 87964eb57acc18285ae31aced6ec3054ccdf5a52 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 11 Jan 2017 13:44:11 +0100 Subject: [PATCH] Move semantics for the ExPolygon constructor. --- xs/src/libslic3r/ExPolygon.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xs/src/libslic3r/ExPolygon.hpp b/xs/src/libslic3r/ExPolygon.hpp index 7d1a609eaf..589649fa0f 100644 --- a/xs/src/libslic3r/ExPolygon.hpp +++ b/xs/src/libslic3r/ExPolygon.hpp @@ -13,9 +13,14 @@ typedef std::vector 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;