diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-19 10:26:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-19 12:53:42 +0200 |
commit | 3d8400a8d938be7b116298d6a79bb49d7cc0cc99 (patch) | |
tree | c1ae099e540025c1dfa7e6d62f6f6d9e5ce90c12 /basegfx/source/polygon/b2dpolypolygoncutter.cxx | |
parent | 2e51afc77c0800dda6c09bb645d8962ae125b2ba (diff) |
loplugin:comparisonwithconstant in accessibility..basegfx
re-running this plugin on these modules now that sberg has improved
the plugin.
Change-Id: I1818b1fa540cf62b81219a4f3ed2dcae8ff0e838
Reviewed-on: https://gerrit.libreoffice.org/37805
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx/source/polygon/b2dpolypolygoncutter.cxx')
-rw-r--r-- | basegfx/source/polygon/b2dpolypolygoncutter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basegfx/source/polygon/b2dpolypolygoncutter.cxx b/basegfx/source/polygon/b2dpolypolygoncutter.cxx index 7bd7ce4a365b..cbd5a50112af 100644 --- a/basegfx/source/polygon/b2dpolypolygoncutter.cxx +++ b/basegfx/source/polygon/b2dpolypolygoncutter.cxx @@ -592,7 +592,7 @@ namespace basegfx { PN& rPN = maPNV[a]; - if(SAL_MAX_UINT32 != rPN.mnI) + if(rPN.mnI != SAL_MAX_UINT32) { // unused node, start new part polygon B2DPolygon aNewPart; @@ -622,7 +622,7 @@ namespace basegfx nCountdown--; pPNCurr = &(maPNV[pPNCurr->mnIN]); } - while(pPNCurr != &rPN && SAL_MAX_UINT32 != pPNCurr->mnI); + while(pPNCurr != &rPN && pPNCurr->mnI != SAL_MAX_UINT32); // close and add aNewPart.setClosed(true); |