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/range | |
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/range')
-rw-r--r-- | basegfx/source/range/b2drangeclipper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basegfx/source/range/b2drangeclipper.cxx b/basegfx/source/range/b2drangeclipper.cxx index 41dfb46585a0..a8492698ba16 100644 --- a/basegfx/source/range/b2drangeclipper.cxx +++ b/basegfx/source/range/b2drangeclipper.cxx @@ -811,7 +811,7 @@ namespace basegfx rPolygonPool, rCurrEvent ); - if( SweepLineEvent::PROCEED_DOWN == rCurrEvent.getEdgeDirection() ) + if( rCurrEvent.getEdgeDirection() == SweepLineEvent::PROCEED_DOWN ) processActiveEdgesTopDown<NoErase>( rCurrEvent, rActiveEdgeList, rPolygonPool, rRes); else @@ -824,7 +824,7 @@ namespace basegfx VectorOfPolygons& rPolygonPool, B2DPolyPolygon& rRes) { - if( SweepLineEvent::PROCEED_DOWN == rCurrEvent.getEdgeDirection() ) + if( rCurrEvent.getEdgeDirection() == SweepLineEvent::PROCEED_DOWN ) processActiveEdgesTopDown<PerformErase>( rCurrEvent, rActiveEdgeList, rPolygonPool, rRes); else @@ -837,7 +837,7 @@ namespace basegfx VectorOfPolygons& rPolygonPool, B2DPolyPolygon& rRes) { - if( SweepLineEvent::STARTING_EDGE == rCurrEvent.getEdgeType() ) + if( rCurrEvent.getEdgeType() == SweepLineEvent::STARTING_EDGE ) handleStartingEdge(rCurrEvent,rActiveEdgeList,rPolygonPool,rRes); else handleFinishingEdge(rCurrEvent,rActiveEdgeList,rPolygonPool,rRes); |