summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorudareechk <udareeck@gmail.com>2017-09-27 12:05:23 +0530
committerMichael Stahl <mstahl@redhat.com>2017-10-30 15:57:00 +0100
commitf9b3a1db585e103bb93be0b5954de6858ad42c51 (patch)
tree3aabfc429b5c8e0362f0cb2216d09645dbff7428 /tools
parent4913a117f8be045b3b1e2f2ef09d7f6a85ff076b (diff)
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 <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/poly.cxx8
1 files changed, 4 insertions, 4 deletions
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);