summaryrefslogtreecommitdiff
path: root/basegfx/source/tools
diff options
context:
space:
mode:
authorAsela Dasanayaka <rukmal.tb@gmail.com>2016-07-30 12:31:53 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-07-30 23:28:50 +0000
commitcf0fea5546c9b6b30d18deb084ddaa5e08aad41b (patch)
tree1fb3d3db795f8194d4b22dd8cbb8663b1d107bc9 /basegfx/source/tools
parent91e4949832514e604e29f69ad8f9c70eb612dae2 (diff)
tdf#96505 get rid of "long" integer literals 'L'
Remove L from integer literals in module basegfx all 0L, 1L, and 2L Change-Id: Ia8a0d660033651f6d0a35392b74b67358b639fb3 Reviewed-on: https://gerrit.libreoffice.org/27717 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'basegfx/source/tools')
-rw-r--r--basegfx/source/tools/unopolypolygon.cxx2
-rw-r--r--basegfx/source/tools/unotools.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/basegfx/source/tools/unopolypolygon.cxx b/basegfx/source/tools/unopolypolygon.cxx
index 3639dee57d73..2e12a9e82ae6 100644
--- a/basegfx/source/tools/unopolypolygon.cxx
+++ b/basegfx/source/tools/unopolypolygon.cxx
@@ -175,7 +175,7 @@ namespace unotools
osl::MutexGuard const guard( m_aMutex );
modifying();
- if( index == -1L )
+ if( index == -1 )
{
// set all
maPolyPoly.setClosed( closedState );
diff --git a/basegfx/source/tools/unotools.cxx b/basegfx/source/tools/unotools.cxx
index 8fe38a743bb8..b1666c3d149a 100644
--- a/basegfx/source/tools/unotools.cxx
+++ b/basegfx/source/tools/unotools.cxx
@@ -171,7 +171,7 @@ namespace unotools
const bool bClosed(rPoly.isClosed());
// calculate input vertex count
- const sal_uInt32 nLoopCount(bClosed ? nCount : (nCount ? nCount - 1L : 0 ));
+ const sal_uInt32 nLoopCount(bClosed ? nCount : (nCount ? nCount - 1 : 0 ));
std::vector<awt::Point> aPoints; aPoints.reserve(nLoopCount);
std::vector<drawing::PolygonFlags> aFlags; aFlags.reserve(nLoopCount);
@@ -237,7 +237,7 @@ namespace unotools
else
{
// add last point as closing point
- const basegfx::B2DPoint aClosingPoint(rPoly.getB2DPoint(nCount - 1L));
+ const basegfx::B2DPoint aClosingPoint(rPoly.getB2DPoint(nCount - 1));
const awt::Point aEnd(fround(aClosingPoint.getX()),
fround(aClosingPoint.getY()));
aPoints.push_back(aEnd);