summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-25 14:08:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-25 21:46:32 +0200
commitff3bdde2527123fc9e011ff0d93e958174632186 (patch)
tree07d86dceca57fc1c85ad208fb436d70ac7e648ab /basegfx
parent305285bd1450bb847058a877b0dc2adface4e521 (diff)
loplugin:passstuffbyref
Change-Id: I785e96599bbda029adf4698d11d7f981750dec07 Reviewed-on: https://gerrit.libreoffice.org/54802 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/polygon/b3dpolygon.cxx8
-rw-r--r--basegfx/source/polygon/b3dpolypolygon.cxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/basegfx/source/polygon/b3dpolygon.cxx b/basegfx/source/polygon/b3dpolygon.cxx
index 1f2e6ebea67a..58be07cfe897 100644
--- a/basegfx/source/polygon/b3dpolygon.cxx
+++ b/basegfx/source/polygon/b3dpolygon.cxx
@@ -1442,7 +1442,7 @@ namespace basegfx
return mpPolygon->count();
}
- basegfx::B3DPoint B3DPolygon::getB3DPoint(sal_uInt32 nIndex) const
+ basegfx::B3DPoint const & B3DPolygon::getB3DPoint(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B3DPolygon access outside range (!)");
@@ -1457,7 +1457,7 @@ namespace basegfx
mpPolygon->setPoint(nIndex, rValue);
}
- BColor B3DPolygon::getBColor(sal_uInt32 nIndex) const
+ BColor const & B3DPolygon::getBColor(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B3DPolygon access outside range (!)");
@@ -1488,7 +1488,7 @@ namespace basegfx
return mpPolygon->getNormal();
}
- B3DVector B3DPolygon::getNormal(sal_uInt32 nIndex) const
+ B3DVector const & B3DPolygon::getNormal(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B3DPolygon access outside range (!)");
@@ -1520,7 +1520,7 @@ namespace basegfx
mpPolygon->clearNormals();
}
- B2DPoint B3DPolygon::getTextureCoordinate(sal_uInt32 nIndex) const
+ B2DPoint const & B3DPolygon::getTextureCoordinate(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B3DPolygon access outside range (!)");
diff --git a/basegfx/source/polygon/b3dpolypolygon.cxx b/basegfx/source/polygon/b3dpolypolygon.cxx
index b7ea0b36631e..7cb977065e0f 100644
--- a/basegfx/source/polygon/b3dpolypolygon.cxx
+++ b/basegfx/source/polygon/b3dpolypolygon.cxx
@@ -229,7 +229,7 @@ namespace basegfx
return mpPolyPolygon->count();
}
- B3DPolygon B3DPolyPolygon::getB3DPolygon(sal_uInt32 nIndex) const
+ B3DPolygon const & B3DPolyPolygon::getB3DPolygon(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolyPolygon->count(), "B3DPolyPolygon access outside range (!)");