From 5f19287a9cd4167e3be937e3df820446f2e30518 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 27 May 2020 14:49:41 +0200 Subject: loplugin:simplifybool in accessibility..basic Change-Id: Ibf6cef4baa2d3d400d953ac8bc97a66b5901def9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94972 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basegfx/source/polygon/b2dpolygoncutandtouch.cxx | 2 +- basegfx/source/polygon/b2dsvgpolypolygon.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'basegfx/source') diff --git a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx index a8ae6372d5ea..99a73ca82bc3 100644 --- a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx +++ b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx @@ -278,7 +278,7 @@ namespace basegfx const sal_uInt32 nPointCountA(rCandidateA.count()); const sal_uInt32 nPointCountB(rCandidateB.count()); - if(!(nPointCountA > 1 && nPointCountB > 1)) + if(nPointCountA <= 1 || nPointCountB <= 1) return; const sal_uInt32 nEdgeCountA(nPointCountA - 1); diff --git a/basegfx/source/polygon/b2dsvgpolypolygon.cxx b/basegfx/source/polygon/b2dsvgpolypolygon.cxx index e8ec2cf6e76e..323fff14c024 100644 --- a/basegfx/source/polygon/b2dsvgpolypolygon.cxx +++ b/basegfx/source/polygon/b2dsvgpolypolygon.cxx @@ -93,7 +93,7 @@ namespace basegfx::utils bool bRelative(false); const sal_Unicode aCurrChar(rSvgDStatement[nPos]); - if(o_rPolyPolygon.count() && !aCurrPoly.count() && !(aCurrChar == 'm' || aCurrChar == 'M')) + if(o_rPolyPolygon.count() && !aCurrPoly.count() && aCurrChar != 'm' && aCurrChar != 'M') { // we have a new sub-polygon starting, but without a 'moveto' command. // this requires to add the current point as start point to the polygon -- cgit