diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-25 14:02:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-29 09:23:46 +0200 |
commit | 45d4b2945cbea49efd5c3d725f3e067bfbd229ba (patch) | |
tree | ca1095729c809e9272452f5abb535f0221988db7 /basegfx/source/polygon/b2dpolypolygon.cxx | |
parent | 9e00f6d70cda2070e6dafbad8eded7d6e7f14ef9 (diff) |
cid#1371223 Missing move assignment operator
and cid#1371216, cid#1371179
Change-Id: I64faaada85cc92a8b47c2a665488f07050be6fc3
Diffstat (limited to 'basegfx/source/polygon/b2dpolypolygon.cxx')
-rw-r--r-- | basegfx/source/polygon/b2dpolypolygon.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/basegfx/source/polygon/b2dpolypolygon.cxx b/basegfx/source/polygon/b2dpolypolygon.cxx index bfaaedec6f6e..f1032f108a86 100644 --- a/basegfx/source/polygon/b2dpolypolygon.cxx +++ b/basegfx/source/polygon/b2dpolypolygon.cxx @@ -183,6 +183,11 @@ namespace basegfx { } + B2DPolyPolygon::B2DPolyPolygon(B2DPolyPolygon&& rPolyPolygon) : + mpPolyPolygon(std::move(rPolyPolygon.mpPolyPolygon)) + { + } + B2DPolyPolygon::B2DPolyPolygon(const B2DPolygon& rPolygon) : mpPolyPolygon( ImplB2DPolyPolygon(rPolygon) ) { @@ -198,6 +203,12 @@ namespace basegfx return *this; } + B2DPolyPolygon& B2DPolyPolygon::operator=(B2DPolyPolygon&& rPolyPolygon) + { + mpPolyPolygon = std::move(rPolyPolygon.mpPolyPolygon); + return *this; + } + void B2DPolyPolygon::makeUnique() { mpPolyPolygon.make_unique(); |