summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-25 14:02:10 +0200
committerNoel Grandin <noel@peralex.com>2016-08-29 09:23:46 +0200
commit45d4b2945cbea49efd5c3d725f3e067bfbd229ba (patch)
treeca1095729c809e9272452f5abb535f0221988db7 /basegfx
parent9e00f6d70cda2070e6dafbad8eded7d6e7f14ef9 (diff)
cid#1371223 Missing move assignment operator
and cid#1371216, cid#1371179 Change-Id: I64faaada85cc92a8b47c2a665488f07050be6fc3
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/matrix/b2dhommatrix.cxx11
-rw-r--r--basegfx/source/polygon/b2dpolygon.cxx10
-rw-r--r--basegfx/source/polygon/b2dpolypolygon.cxx11
3 files changed, 32 insertions, 0 deletions
diff --git a/basegfx/source/matrix/b2dhommatrix.cxx b/basegfx/source/matrix/b2dhommatrix.cxx
index 07d10e6bebff..2dce96fb2379 100644
--- a/basegfx/source/matrix/b2dhommatrix.cxx
+++ b/basegfx/source/matrix/b2dhommatrix.cxx
@@ -45,6 +45,11 @@ namespace basegfx
{
}
+ B2DHomMatrix::B2DHomMatrix(B2DHomMatrix&& rMat) :
+ mpImpl(std::move(rMat.mpImpl))
+ {
+ }
+
B2DHomMatrix::~B2DHomMatrix()
{
}
@@ -66,6 +71,12 @@ namespace basegfx
return *this;
}
+ B2DHomMatrix& B2DHomMatrix::operator=(B2DHomMatrix&& rMat)
+ {
+ mpImpl = std::move(rMat.mpImpl);
+ return *this;
+ }
+
double B2DHomMatrix::get(sal_uInt16 nRow, sal_uInt16 nColumn) const
{
return mpImpl->get(nRow, nColumn);
diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx
index 4274e629581b..2cf40a12175c 100644
--- a/basegfx/source/polygon/b2dpolygon.cxx
+++ b/basegfx/source/polygon/b2dpolygon.cxx
@@ -1118,6 +1118,10 @@ namespace basegfx
: mpPolygon(rPolygon.mpPolygon)
{}
+ B2DPolygon::B2DPolygon(B2DPolygon&& rPolygon)
+ : mpPolygon(std::move(rPolygon.mpPolygon))
+ {}
+
B2DPolygon::B2DPolygon(const B2DPolygon& rPolygon, sal_uInt32 nIndex, sal_uInt32 nCount)
: mpPolygon(ImplB2DPolygon(*rPolygon.mpPolygon, nIndex, nCount))
{
@@ -1136,6 +1140,12 @@ namespace basegfx
return *this;
}
+ B2DPolygon& B2DPolygon::operator=(B2DPolygon&& rPolygon)
+ {
+ mpPolygon = std::move(rPolygon.mpPolygon);
+ return *this;
+ }
+
void B2DPolygon::makeUnique()
{
mpPolygon.make_unique();
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();