From ff3bdde2527123fc9e011ff0d93e958174632186 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 25 May 2018 14:08:33 +0200 Subject: loplugin:passstuffbyref Change-Id: I785e96599bbda029adf4698d11d7f981750dec07 Reviewed-on: https://gerrit.libreoffice.org/54802 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basegfx/source/polygon/b3dpolygon.cxx | 8 ++++---- basegfx/source/polygon/b3dpolypolygon.cxx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'basegfx') 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 (!)"); -- cgit