diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-01 20:22:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-02 00:13:41 +0200 |
commit | 792a4768e1765b6d1f78d8bd5ca9b2a5abfd0a13 (patch) | |
tree | 3d71788f2f2e755c133ec3f3b765c522f53098bc /basegfx | |
parent | bea8576e8218cc8fee7966877d7412377e70e204 (diff) |
cid#1596705 Unused value
Change-Id: Ie5bfe55fd964c05f80d3400a66aa79886f3c144b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166983
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/polygon/b2dpolygontools.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx index 92beaa21fd0a..89c8eea90111 100644 --- a/basegfx/source/polygon/b2dpolygontools.cxx +++ b/basegfx/source/polygon/b2dpolygontools.cxx @@ -3328,12 +3328,11 @@ namespace basegfx::utils // get first point and flag B2DPoint aNewCoordinatePair(rPointSequenceSource[0].X, rPointSequenceSource[0].Y); - css::drawing::PolygonFlags ePolygonFlag(rFlagSequenceSource[0]); B2DPoint aControlA; B2DPoint aControlB; // first point is not allowed to be a control point - OSL_ENSURE(ePolygonFlag != css::drawing::PolygonFlags_CONTROL, + OSL_ENSURE(rFlagSequenceSource[0] != css::drawing::PolygonFlags_CONTROL, "UnoPolygonBezierCoordsToB2DPolygon: Start point is a control point, illegal input polygon (!)"); // add first point as start point @@ -3347,7 +3346,7 @@ namespace basegfx::utils // get next point and flag aNewCoordinatePair = B2DPoint(rPointSequenceSource[b].X, rPointSequenceSource[b].Y); - ePolygonFlag = rFlagSequenceSource[b]; + css::drawing::PolygonFlags ePolygonFlag = rFlagSequenceSource[b]; b++; if(b < nCount && ePolygonFlag == css::drawing::PolygonFlags_CONTROL) |