diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-16 14:06:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-18 09:17:30 +0200 |
commit | 60861faa8653afebb504cfbcaeed633d2373a27d (patch) | |
tree | 1dec7a4ba05a212052fd64439645f024643d78ec /basegfx/source/polygon/b2dpolypolygontools.cxx | |
parent | d89fa2bd4944625e2dbe56d5709a3f126db24f21 (diff) |
loplugin:comparisonwithconstant in basegfx
Change-Id: I6953640a1aa2e58fe2ea6555291c4f4a5271770f
Reviewed-on: https://gerrit.libreoffice.org/37680
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx/source/polygon/b2dpolypolygontools.cxx')
-rw-r--r-- | basegfx/source/polygon/b2dpolypolygontools.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/basegfx/source/polygon/b2dpolypolygontools.cxx b/basegfx/source/polygon/b2dpolypolygontools.cxx index 990ec1b331b8..c2c1cb25befc 100644 --- a/basegfx/source/polygon/b2dpolypolygontools.cxx +++ b/basegfx/source/polygon/b2dpolypolygontools.cxx @@ -54,10 +54,10 @@ namespace basegfx } } - const bool bShallBeHole(1 == (nDepth & 0x00000001)); - const bool bIsHole(B2VectorOrientation::Negative == aOrientation); + const bool bShallBeHole((nDepth & 0x00000001) == 1); + const bool bIsHole(aOrientation == B2VectorOrientation::Negative); - if(bShallBeHole != bIsHole && B2VectorOrientation::Neutral != aOrientation) + if(bShallBeHole != bIsHole && aOrientation != B2VectorOrientation::Neutral) { B2DPolygon aFlipped(aCandidate); aFlipped.flip(); @@ -174,7 +174,7 @@ namespace basegfx { const sal_uInt32 nPolygonCount(rCandidate.count()); - if(1 == nPolygonCount) + if(nPolygonCount == 1) { return isInside(rCandidate.getB2DPolygon(0), rPoint, bWithBorder); } |