diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-03 10:05:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-03 10:53:01 +0100 |
commit | 0528012fd0dc4b93645ef7790b0db9d1cecbae66 (patch) | |
tree | e3adb8f0200fc95c06f62205b346244c79ae88ca /basegfx | |
parent | f612839ed9200a3900ae5c3a2e12beccfa37b11e (diff) |
loplugin:constantparam
Change-Id: If2dee122bf07dc179fd8f6e766442ec1891a5f3d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87845
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/polygon/b2dlinegeometry.cxx | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/basegfx/source/polygon/b2dlinegeometry.cxx b/basegfx/source/polygon/b2dlinegeometry.cxx index 72c25f0c0593..0f602eb6241e 100644 --- a/basegfx/source/polygon/b2dlinegeometry.cxx +++ b/basegfx/source/polygon/b2dlinegeometry.cxx @@ -848,8 +848,7 @@ namespace basegfx css::drawing::LineCap eCap, double fMaxAllowedAngle, double fMaxPartOfEdge, - double fMiterMinimumAngle, - basegfx::triangulator::B2DTriangleVector* pTriangles) + double fMiterMinimumAngle) { if(fMaxAllowedAngle > F_PI2) { @@ -959,7 +958,7 @@ namespace basegfx fHalfLineWidth, eJoin, fMiterMinimumAngle, - pTriangles)); + nullptr)); } else if(aOrientation == B2VectorOrientation::Negative) { @@ -976,7 +975,7 @@ namespace basegfx fHalfLineWidth, eJoin, fMiterMinimumAngle, - pTriangles)); + nullptr)); } } @@ -995,7 +994,7 @@ namespace basegfx bLast && eCap == css::drawing::LineCap_ROUND, bFirst && eCap == css::drawing::LineCap_SQUARE, bLast && eCap == css::drawing::LineCap_SQUARE, - pTriangles)); + nullptr)); } else { @@ -1007,7 +1006,7 @@ namespace basegfx false, false, false, - pTriangles)); + nullptr)); } // prepare next step @@ -1030,17 +1029,7 @@ namespace basegfx aCandidate.getB2DPoint(0), fHalfLineWidth)); - if(nullptr != pTriangles) - { - const basegfx::triangulator::B2DTriangleVector aResult( - basegfx::triangulator::triangulate( - aCircle)); - pTriangles->insert(pTriangles->end(), aResult.begin(), aResult.end()); - } - else - { - aRetval.append(aCircle); - } + aRetval.append(aCircle); } return aRetval; |