diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-25 14:55:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-29 09:23:46 +0200 |
commit | e0ecd9b536ea60038795be31386f5d2785cb4d4e (patch) | |
tree | fff68e9bdf7564909fa26a093041d79917af46ff /svx/source/xoutdev/_xpoly.cxx | |
parent | ab0eecc0be4671c984dedf5a4941febcd5dec589 (diff) |
cid#1371241 Missing move assignment operator
Change-Id: Ic914ac2ed5fb48cf340f2e54d074ee64e202225e
Diffstat (limited to 'svx/source/xoutdev/_xpoly.cxx')
-rw-r--r-- | svx/source/xoutdev/_xpoly.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/svx/source/xoutdev/_xpoly.cxx b/svx/source/xoutdev/_xpoly.cxx index a51233db7473..cf78c7b26ebd 100644 --- a/svx/source/xoutdev/_xpoly.cxx +++ b/svx/source/xoutdev/_xpoly.cxx @@ -212,6 +212,11 @@ XPolygon::XPolygon( const XPolygon& rXPoly ) { } +XPolygon::XPolygon( XPolygon&& rXPoly ) + : pImpXPolygon(std::move(rXPoly.pImpXPolygon)) +{ +} + /// create a XPolygon out of a standard polygon XPolygon::XPolygon( const tools::Polygon& rPoly ) : pImpXPolygon( rPoly.GetSize() ) @@ -453,6 +458,12 @@ XPolygon& XPolygon::operator=( const XPolygon& rXPoly ) return *this; } +XPolygon& XPolygon::operator=( XPolygon&& rXPoly ) +{ + pImpXPolygon = std::move(rXPoly.pImpXPolygon); + return *this; +} + bool XPolygon::operator==( const XPolygon& rXPoly ) const { pImpXPolygon->CheckPointDelete(); |