diff options
-rw-r--r-- | basegfx/source/polygon/b3dpolygon.cxx | 11 | ||||
-rw-r--r-- | include/basegfx/polygon/b3dpolygon.hxx | 2 |
2 files changed, 13 insertions, 0 deletions
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)) diff --git a/include/basegfx/polygon/b3dpolygon.hxx b/include/basegfx/polygon/b3dpolygon.hxx index d32968b47ac0..765762730f20 100644 --- a/include/basegfx/polygon/b3dpolygon.hxx +++ b/include/basegfx/polygon/b3dpolygon.hxx @@ -51,10 +51,12 @@ namespace basegfx public: B3DPolygon(); B3DPolygon(const B3DPolygon& rPolygon); + B3DPolygon(B3DPolygon&& rPolygon); ~B3DPolygon(); // assignment operator B3DPolygon& operator=(const B3DPolygon& rPolygon); + B3DPolygon& operator=(B3DPolygon&& rPolygon); // compare operators bool operator==(const B3DPolygon& rPolygon) const; |