diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-23 18:35:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-24 07:01:47 +0100 |
commit | 6028b64e27dc45f20aa4a4e0adbef1c03e91a79b (patch) | |
tree | fcdba02b18bc9081371b91681fcb898697155af6 /basegfx | |
parent | 92bab0f11e0a93005bfd13db3a0552ecaf082ecb (diff) |
loplugin:passstuffbyref even more return improvements
Change-Id: I2a752025cd429e4d271626402dce5d8a8b0c76d2
Reviewed-on: https://gerrit.libreoffice.org/47021
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/b2dpolygon.cxx | 6 | ||||
-rw-r--r-- | basegfx/source/polygon/b2dpolypolygon.cxx | 2 | ||||
-rw-r--r-- | basegfx/source/tools/b2dclipstate.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx index 17df4c4b3738..601f493c27b4 100644 --- a/basegfx/source/polygon/b2dpolygon.cxx +++ b/basegfx/source/polygon/b2dpolygon.cxx @@ -1175,7 +1175,7 @@ namespace basegfx return mpPolygon->count(); } - B2DPoint B2DPolygon::getB2DPoint(sal_uInt32 nIndex) const + B2DPoint const & B2DPolygon::getB2DPoint(sal_uInt32 nIndex) const { OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); @@ -1399,12 +1399,12 @@ namespace basegfx } } - B2DPolygon B2DPolygon::getDefaultAdaptiveSubdivision() const + B2DPolygon const & B2DPolygon::getDefaultAdaptiveSubdivision() const { return mpPolygon->getDefaultAdaptiveSubdivision(*this); } - B2DRange B2DPolygon::getB2DRange() const + B2DRange const & B2DPolygon::getB2DRange() const { return mpPolygon->getB2DRange(*this); } diff --git a/basegfx/source/polygon/b2dpolypolygon.cxx b/basegfx/source/polygon/b2dpolypolygon.cxx index 977adde32d7f..b0a51d46a3a7 100644 --- a/basegfx/source/polygon/b2dpolypolygon.cxx +++ b/basegfx/source/polygon/b2dpolypolygon.cxx @@ -230,7 +230,7 @@ namespace basegfx return mpPolyPolygon->count(); } - B2DPolygon B2DPolyPolygon::getB2DPolygon(sal_uInt32 nIndex) const + B2DPolygon const & B2DPolyPolygon::getB2DPolygon(sal_uInt32 nIndex) const { OSL_ENSURE(nIndex < mpPolyPolygon->count(), "B2DPolyPolygon access outside range (!)"); diff --git a/basegfx/source/tools/b2dclipstate.cxx b/basegfx/source/tools/b2dclipstate.cxx index cf848f1af1c2..cff66f93faf9 100644 --- a/basegfx/source/tools/b2dclipstate.cxx +++ b/basegfx/source/tools/b2dclipstate.cxx @@ -482,7 +482,7 @@ namespace utils mpImpl->xorPolyPolygon(rPolyPoly); } - B2DPolyPolygon B2DClipState::getClipPoly() const + B2DPolyPolygon const & B2DClipState::getClipPoly() const { return mpImpl->getClipPoly(); } |