summaryrefslogtreecommitdiff
path: root/svx/source
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 /svx/source
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 'svx/source')
-rw-r--r--svx/source/sdr/contact/objectcontactofobjlistpainter.cxx2
-rw-r--r--svx/source/svdraw/svdfmtf.cxx8
-rw-r--r--svx/source/svdraw/svdocirc.cxx4
-rw-r--r--svx/source/unodraw/unoshape.cxx2
4 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx b/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx
index f3362376fac1..ee202580b252 100644
--- a/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx
+++ b/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx
@@ -154,7 +154,7 @@ OutputDevice* ObjectContactOfObjListPainter::TryToGetOutputDevice() const
sal_uInt32 ObjectContactOfPagePainter::GetPaintObjectCount() const
{
- return (GetStartPage() ? 1L : 0L);
+ return (GetStartPage() ? 1 : 0);
}
ViewContact& ObjectContactOfPagePainter::GetPaintObjectViewContact(sal_uInt32 /*nIndex*/)
diff --git a/svx/source/svdraw/svdfmtf.cxx b/svx/source/svdraw/svdfmtf.cxx
index 60fe1ed4c867..b88a0485577b 100644
--- a/svx/source/svdraw/svdfmtf.cxx
+++ b/svx/source/svdraw/svdfmtf.cxx
@@ -793,27 +793,27 @@ bool ImpSdrGDIMetaFileImport::CheckLastLineMerge(const basegfx::B2DPolygon& rSrc
if(aDstPoly.getB2DPoint(nMaxDstPnt) == rSrcPoly.getB2DPoint(0))
{
- aDstPoly.append(rSrcPoly, 1L, rSrcPoly.count() - 1);
+ aDstPoly.append(rSrcPoly, 1, rSrcPoly.count() - 1);
bOk = true;
}
else if(aDstPoly.getB2DPoint(0) == rSrcPoly.getB2DPoint(nMaxSrcPnt))
{
basegfx::B2DPolygon aNew(rSrcPoly);
- aNew.append(aDstPoly, 1L, aDstPoly.count() - 1);
+ aNew.append(aDstPoly, 1, aDstPoly.count() - 1);
aDstPoly = aNew;
bOk = true;
}
else if(aDstPoly.getB2DPoint(0) == rSrcPoly.getB2DPoint(0))
{
aDstPoly.flip();
- aDstPoly.append(rSrcPoly, 1L, rSrcPoly.count() - 1);
+ aDstPoly.append(rSrcPoly, 1, rSrcPoly.count() - 1);
bOk = true;
}
else if(aDstPoly.getB2DPoint(nMaxDstPnt) == rSrcPoly.getB2DPoint(nMaxSrcPnt))
{
basegfx::B2DPolygon aNew(rSrcPoly);
aNew.flip();
- aDstPoly.append(aNew, 1L, aNew.count() - 1);
+ aDstPoly.append(aNew, 1, aNew.count() - 1);
bOk = true;
}
}
diff --git a/svx/source/svdraw/svdocirc.cxx b/svx/source/svdraw/svdocirc.cxx
index 6809d0cd95b5..6d93e8b04452 100644
--- a/svx/source/svdraw/svdocirc.cxx
+++ b/svx/source/svdraw/svdocirc.cxx
@@ -1030,9 +1030,9 @@ void SdrCircObj::NbcSetSnapRect(const tools::Rectangle& rRect)
sal_uInt32 SdrCircObj::GetSnapPointCount() const
{
if (meCircleKind==OBJ_CIRC) {
- return 1L;
+ return 1;
} else {
- return 3L;
+ return 3;
}
}
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index 9b32265423c5..98bb162a0b0d 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -2262,7 +2262,7 @@ bool SvxShape::setPropertyValueImpl( const OUString&, const SfxItemPropertySimpl
if( mpModel->IsWriter() )
aPoint += mpObj->GetAnchorPos();
- pMeasureObj->NbcSetPoint( aPoint, pProperty->nWID == OWN_ATTR_MEASURE_START_POS ? 0L : 1L );
+ pMeasureObj->NbcSetPoint( aPoint, pProperty->nWID == OWN_ATTR_MEASURE_START_POS ? 0 : 1 );
pMeasureObj->SetChanged();
pMeasureObj->BroadcastObjectChange();
return true;