summaryrefslogtreecommitdiffstats
path: root/basegfx/source/polygon/b2dpolygontools.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-20 10:20:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-20 13:39:08 +0200
commit56775815a39c2ee4a0f711738947d2fb234c4923 (patch)
treee11780c6736e32518950102ceb73103fabaeb576 /basegfx/source/polygon/b2dpolygontools.cxx
parentUpdated core (diff)
downloadcore-56775815a39c2ee4a0f711738947d2fb234c4923.tar.gz
core-56775815a39c2ee4a0f711738947d2fb234c4923.zip
loplugin:constantparam
Change-Id: Ia58d8950b3b9e48bbe9f075b9fe1eed62d9abf0d Reviewed-on: https://gerrit.libreoffice.org/53188 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx/source/polygon/b2dpolygontools.cxx')
-rw-r--r--basegfx/source/polygon/b2dpolygontools.cxx18
1 files changed, 5 insertions, 13 deletions
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx
index 8457ff3044b9..db3365eee313 100644
--- a/basegfx/source/polygon/b2dpolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolygontools.cxx
@@ -3204,8 +3204,7 @@ namespace basegfx
// converters for css::drawing::PointSequence
B2DPolygon UnoPointSequenceToB2DPolygon(
- const css::drawing::PointSequence& rPointSequenceSource,
- bool bCheckClosed)
+ const css::drawing::PointSequence& rPointSequenceSource)
{
B2DPolygon aRetval;
const sal_uInt32 nLength(rPointSequenceSource.getLength());
@@ -3221,11 +3220,8 @@ namespace basegfx
aRetval.append(B2DPoint(pArray->X, pArray->Y));
}
- if(bCheckClosed)
- {
- // check for closed state flag
- utils::checkClosed(aRetval);
- }
+ // check for closed state flag
+ utils::checkClosed(aRetval);
}
return aRetval;
@@ -3281,8 +3277,7 @@ namespace basegfx
B2DPolygon UnoPolygonBezierCoordsToB2DPolygon(
const css::drawing::PointSequence& rPointSequenceSource,
- const css::drawing::FlagSequence& rFlagSequenceSource,
- bool bCheckClosed)
+ const css::drawing::FlagSequence& rFlagSequenceSource)
{
const sal_uInt32 nCount(static_cast<sal_uInt32>(rPointSequenceSource.getLength()));
OSL_ENSURE(nCount == static_cast<sal_uInt32>(rFlagSequenceSource.getLength()),
@@ -3373,10 +3368,7 @@ namespace basegfx
// #i72807# API import uses old line start/end-equal definition for closed,
// so we need to correct this to closed state here
- if(bCheckClosed)
- {
- checkClosed(aRetval);
- }
+ checkClosed(aRetval);
return aRetval;
}