From f9b3a1db585e103bb93be0b5954de6858ad42c51 Mon Sep 17 00:00:00 2001 From: udareechk Date: Wed, 27 Sep 2017 12:05:23 +0530 Subject: tdf#96505 Get rid of cargo cult long integer literals Removing unnecessary 1L occurrences Change-Id: I85d4949eacde0dfc0ff7a513f4bf42324e6d34c1 Reviewed-on: https://gerrit.libreoffice.org/42840 Tested-by: Jenkins Reviewed-by: Michael Stahl --- tools/source/generic/poly.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index c44c5ecf7b69..1904d85d5a9d 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -1837,14 +1837,14 @@ Polygon::Polygon(const basegfx::B2DPolygon& rPolygon) if(bCurve) { // #127979# Reduce source point count hard to the limit of the tools Polygon - if(nB2DLocalCount > ((0x0000ffff / 3L) - 1)) + if(nB2DLocalCount > ((0x0000ffff / 3) - 1)) { OSL_FAIL("Polygon::Polygon: Too many points in given B2DPolygon, need to reduce hard to maximum of tools Polygon (!)"); - nB2DLocalCount = ((0x0000ffff / 3L) - 1); + nB2DLocalCount = ((0x0000ffff / 3) - 1); } // calculate target point count - const sal_uInt32 nLoopCount(bClosed ? nB2DLocalCount : (nB2DLocalCount ? nB2DLocalCount - 1 : 0L )); + const sal_uInt32 nLoopCount(bClosed ? nB2DLocalCount : (nB2DLocalCount ? nB2DLocalCount - 1 : 0 )); if(nLoopCount) { @@ -1940,7 +1940,7 @@ Polygon::Polygon(const basegfx::B2DPolygon& rPolygon) if(nB2DLocalCount) { // point list creation - const sal_uInt32 nTargetCount(nB2DLocalCount + (bClosed ? 1L : 0L)); + const sal_uInt32 nTargetCount(nB2DLocalCount + (bClosed ? 1 : 0)); mpImplPolygon = new ImplPolygon( static_cast< sal_uInt16 >(nTargetCount) ); sal_uInt16 nIndex(0); -- cgit v1.2.3