diff options
author | 66kesara99 <dev.kesara@gmail.com> | 2017-09-23 07:07:14 +0530 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-09-24 20:18:56 +0200 |
commit | 16549dc267149aaf098191591acb20024ea21513 (patch) | |
tree | 6037a3e72b2289ed353f75e60faa60b0ba7b24f3 /drawinglayer/source/primitive3d | |
parent | 3f19b593019a62d97c8739e38c32902d7e19d790 (diff) |
tdf#96505 Get rid of cargo cult "long" integer literals
Remove unnecessary "Long" literals in multiple locations
Change-Id: Icc44546f10fed841683053eee01b788274e0add1
Reviewed-on: https://gerrit.libreoffice.org/42683
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'drawinglayer/source/primitive3d')
3 files changed, 19 insertions, 19 deletions
diff --git a/drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx b/drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx index f89e10858449..5657307dd5f3 100644 --- a/drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx +++ b/drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx @@ -82,16 +82,16 @@ namespace drawinglayer basegfx::B3DPolygon aNewPolygon; aNewPolygon.append(aNextLeft); - aNewPolygon.setNormal(0L, basegfx::B3DVector(aNextLeft - aLeft)); + aNewPolygon.setNormal(0, basegfx::B3DVector(aNextLeft - aLeft)); aNewPolygon.append(aLastLeft); - aNewPolygon.setNormal(1L, basegfx::B3DVector(aLastLeft - aLeft)); + aNewPolygon.setNormal(1, basegfx::B3DVector(aLastLeft - aLeft)); aNewPolygon.append(aLastRight); - aNewPolygon.setNormal(2L, basegfx::B3DVector(aLastRight - aRight)); + aNewPolygon.setNormal(2, basegfx::B3DVector(aLastRight - aRight)); aNewPolygon.append(aNextRight); - aNewPolygon.setNormal(3L, basegfx::B3DVector(aNextRight - aRight)); + aNewPolygon.setNormal(3, basegfx::B3DVector(aNextRight - aRight)); aNewPolygon.setClosed(true); @@ -163,13 +163,13 @@ namespace drawinglayer basegfx::B3DPolygon aNewPolygon; aNewPolygon.append(aLast); - aNewPolygon.setNormal(0L, basegfx::B3DVector(aLast - aNull)); + aNewPolygon.setNormal(0, basegfx::B3DVector(aLast - aNull)); aNewPolygon.append(aNext); - aNewPolygon.setNormal(1L, basegfx::B3DVector(aNext - aNull)); + aNewPolygon.setNormal(1, basegfx::B3DVector(aNext - aNull)); aNewPolygon.append(aNull); - aNewPolygon.setNormal(2L, basegfx::B3DVector(-1.0, 0.0, 0.0)); + aNewPolygon.setNormal(2, basegfx::B3DVector(-1.0, 0.0, 0.0)); aNewPolygon.setClosed(true); diff --git a/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx b/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx index 880519b3afa2..deac45e862c9 100644 --- a/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx +++ b/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx @@ -155,10 +155,10 @@ namespace if(bCreateNormals) { - aNew.setNormal(0L, aSubA.getNormal(nIndexA)); - aNew.setNormal(1L, aSubB.getNormal(nIndexA)); - aNew.setNormal(2L, aSubB.getNormal(nIndexB)); - aNew.setNormal(3L, aSubA.getNormal(nIndexB)); + aNew.setNormal(0, aSubA.getNormal(nIndexA)); + aNew.setNormal(1, aSubB.getNormal(nIndexA)); + aNew.setNormal(2, aSubB.getNormal(nIndexB)); + aNew.setNormal(3, aSubA.getNormal(nIndexB)); } if(bCreateTextureCoordinates) @@ -173,10 +173,10 @@ namespace fPolygonPosB += fEdgeLengthB; const double fRelTexBR(fPolygonPosB * fTexHorMultiplicatorB); - aNew.setTextureCoordinate(0L, basegfx::B2DPoint(fRelTexAL, fTexVerStart)); - aNew.setTextureCoordinate(1L, basegfx::B2DPoint(fRelTexBL, fTexVerStop)); - aNew.setTextureCoordinate(2L, basegfx::B2DPoint(fRelTexBR, fTexVerStop)); - aNew.setTextureCoordinate(3L, basegfx::B2DPoint(fRelTexAR, fTexVerStart)); + aNew.setTextureCoordinate(0, basegfx::B2DPoint(fRelTexAL, fTexVerStart)); + aNew.setTextureCoordinate(1, basegfx::B2DPoint(fRelTexBL, fTexVerStop)); + aNew.setTextureCoordinate(2, basegfx::B2DPoint(fRelTexBR, fTexVerStop)); + aNew.setTextureCoordinate(3, basegfx::B2DPoint(fRelTexAR, fTexVerStart)); } rTarget.append(aNew); @@ -601,7 +601,7 @@ namespace drawinglayer if(bCreateTextureCoordinates) { - aTexRangeFront = basegfx::tools::getRange(rSliceVector[0L].getB3DPolyPolygon()); + aTexRangeFront = basegfx::tools::getRange(rSliceVector[0].getB3DPolyPolygon()); aTexRangeBack = basegfx::tools::getRange(rSliceVector[nNumSlices - 1].getB3DPolyPolygon()); if(aTexRangeBack.getDepth() > aTexRangeBack.getWidth()) @@ -614,7 +614,7 @@ namespace drawinglayer aTexRangeBack.getMaxZ(), aTexRangeBack.getMaxY(), aTexRangeBack.getMaxX()); } - basegfx::B3DPoint aCenter(basegfx::tools::getRange(rSliceVector[0L].getB3DPolyPolygon()).getCenter()); + basegfx::B3DPoint aCenter(basegfx::tools::getRange(rSliceVector[0].getB3DPolyPolygon()).getCenter()); for(a = 0; a < nLoopCount; a++) { diff --git a/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx index b592c74b0d90..f453d03578d9 100644 --- a/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx +++ b/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx @@ -211,10 +211,10 @@ namespace drawinglayer maCorrectedPolyPolygon = basegfx::tools::correctOutmostPolygon(maCorrectedPolyPolygon); // check edge count of first sub-polygon. If different, reSegment polyPolygon. This ensures - // that for polyPolygons, the subPolys 1..n only get reSegmented when polygon 0L is different + // that for polyPolygons, the subPolys 1..n only get reSegmented when polygon 0 is different // at all (and not always) const basegfx::B2DPolygon aSubCandidate(maCorrectedPolyPolygon.getB2DPolygon(0)); - const sal_uInt32 nSubEdgeCount(aSubCandidate.isClosed() ? aSubCandidate.count() : (aSubCandidate.count() ? aSubCandidate.count() - 1 : 0L)); + const sal_uInt32 nSubEdgeCount(aSubCandidate.isClosed() ? aSubCandidate.count() : (aSubCandidate.count() ? aSubCandidate.count() - 1 : 0)); if(nSubEdgeCount != getVerticalSegments()) { |