From 69a5e1e562f7859a1c9745d578cd936a330b9aad Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 25 Aug 2016 13:10:29 +0200 Subject: cid#1371281 Missing move assignment operator Change-Id: I29e1b042d2550bbe909ea432b161bdcb418d8976 --- basegfx/source/polygon/b3dpolygon.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'basegfx') diff --git a/basegfx/source/polygon/b3dpolygon.cxx b/basegfx/source/polygon/b3dpolygon.cxx index 184194313fd8..517cb97ec97e 100644 --- a/basegfx/source/polygon/b3dpolygon.cxx +++ b/basegfx/source/polygon/b3dpolygon.cxx @@ -1508,6 +1508,11 @@ namespace basegfx { } + B3DPolygon::B3DPolygon(B3DPolygon&& rPolygon) : + mpPolygon(std::move(rPolygon.mpPolygon)) + { + } + B3DPolygon::~B3DPolygon() { } @@ -1518,6 +1523,12 @@ namespace basegfx return *this; } + B3DPolygon& B3DPolygon::operator=(B3DPolygon&& rPolygon) + { + mpPolygon = std::move(rPolygon.mpPolygon); + return *this; + } + bool B3DPolygon::operator==(const B3DPolygon& rPolygon) const { if(mpPolygon.same_object(rPolygon.mpPolygon)) -- cgit