diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-04 16:12:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-04 20:19:06 +0200 |
commit | 203476b6676505acafd1c41561800afd9316a0f6 (patch) | |
tree | 6693007f3d0adb6d9d644ef35ad0eea11b0b2c14 /basegfx | |
parent | f73e8c895e24fda10931ecf344a1a0dd8bcdf92c (diff) |
loplugin:constantparam
Change-Id: Iee554baae7239c9bf0ac35cab6ff235a88dc29a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153973
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
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 6dda8f9e7e1f..37c7cfc172d2 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 > M_PI_2) { @@ -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; |