diff options
author | Yusuf Keten <ketenyusuf@gmail.com> | 2020-01-07 00:12:30 +0300 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-01-08 14:00:31 +0100 |
commit | f69fa576c579a88853a563aed1b947319b6ffcf1 (patch) | |
tree | a469ffb368824b45fb1408ec47cc5eba0f265d0e | |
parent | d68f5c3c684ef440d537372ccf3edc30d2fa3668 (diff) |
tdf#96505 Get rid of cargo cult long integer literals
Change-Id: Ic0cde7c087d54a80a57d2a2574fa1f3932192367
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86311
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r-- | svx/source/engine3d/obj3d.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdobj.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdocirc.cxx | 4 | ||||
-rw-r--r-- | svx/source/svdraw/svdograf.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdomeas.cxx | 6 | ||||
-rw-r--r-- | svx/source/svdraw/svdotext.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdotxdr.cxx | 2 | ||||
-rw-r--r-- | tools/source/stream/stream.cxx | 2 |
8 files changed, 11 insertions, 11 deletions
diff --git a/svx/source/engine3d/obj3d.cxx b/svx/source/engine3d/obj3d.cxx index f743c58fd67b..911a9b7ff70a 100644 --- a/svx/source/engine3d/obj3d.cxx +++ b/svx/source/engine3d/obj3d.cxx @@ -520,7 +520,7 @@ basegfx::B2DPolyPolygon E3dCompoundObject::TakeXorPoly() const sal_uInt32 E3dCompoundObject::GetHdlCount() const { // 8 corners + 1 E3dVolumeMarker (= Wireframe representation) - return 9L; + return 9; } void E3dCompoundObject::AddToHdlList(SdrHdlList& rHdlList) const diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index db6238c704ba..d1d898379fdf 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -1190,7 +1190,7 @@ basegfx::B2DPolyPolygon SdrObject::TakeContour() const sal_uInt32 SdrObject::GetHdlCount() const { - return 8L; + return 8; } void SdrObject::AddToHdlList(SdrHdlList& rHdlList) const diff --git a/svx/source/svdraw/svdocirc.cxx b/svx/source/svdraw/svdocirc.cxx index 7c5aa3bf9196..efbc2803cb2f 100644 --- a/svx/source/svdraw/svdocirc.cxx +++ b/svx/source/svdraw/svdocirc.cxx @@ -424,11 +424,11 @@ sal_uInt32 SdrCircObj::GetHdlCount() const { if(SdrCircKind::Full != meCircleKind) { - return 10L; + return 10; } else { - return 8L; + return 8; } } diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index 135b934be8b4..67b598ce14b3 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -767,7 +767,7 @@ SdrGrafObj& SdrGrafObj::operator=( const SdrGrafObj& rObj ) sal_uInt32 SdrGrafObj::GetHdlCount() const { - return 8L; + return 8; } void SdrGrafObj::AddToHdlList(SdrHdlList& rHdlList) const diff --git a/svx/source/svdraw/svdomeas.cxx b/svx/source/svdraw/svdomeas.cxx index e950dc8f14e3..8ac271db2904 100644 --- a/svx/source/svdraw/svdomeas.cxx +++ b/svx/source/svdraw/svdomeas.cxx @@ -749,7 +749,7 @@ basegfx::B2DPolyPolygon SdrMeasureObj::TakeXorPoly() const sal_uInt32 SdrMeasureObj::GetHdlCount() const { - return 6L; + return 6; } void SdrMeasureObj::AddToHdlList(SdrHdlList& rHdlList) const @@ -1079,7 +1079,7 @@ void SdrMeasureObj::RecalcSnapRect() sal_uInt32 SdrMeasureObj::GetSnapPointCount() const { - return 2L; + return 2; } Point SdrMeasureObj::GetSnapPoint(sal_uInt32 i) const @@ -1095,7 +1095,7 @@ bool SdrMeasureObj::IsPolyObj() const sal_uInt32 SdrMeasureObj::GetPointCount() const { - return 2L; + return 2; } Point SdrMeasureObj::GetPoint(sal_uInt32 i) const diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index 4ce65ca33f61..ef76a53b1dca 100644 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -1120,7 +1120,7 @@ void SdrTextObj::RecalcSnapRect() sal_uInt32 SdrTextObj::GetSnapPointCount() const { - return 4L; + return 4; } Point SdrTextObj::GetSnapPoint(sal_uInt32 i) const diff --git a/svx/source/svdraw/svdotxdr.cxx b/svx/source/svdraw/svdotxdr.cxx index b340340a1a3c..182f4d99f9fc 100644 --- a/svx/source/svdraw/svdotxdr.cxx +++ b/svx/source/svdraw/svdotxdr.cxx @@ -35,7 +35,7 @@ sal_uInt32 SdrTextObj::GetHdlCount() const { - return 8L; + return 8; } void SdrTextObj::AddToHdlList(SdrHdlList& rHdlList) const diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index a85f4d1be5a2..c39d6787e134 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -1702,7 +1702,7 @@ std::size_t SvMemoryStream::GetData( void* pData, std::size_t nCount ) std::size_t SvMemoryStream::PutData( const void* pData, std::size_t nCount ) { if( GetError() ) - return 0L; + return 0; std::size_t nMaxCount = nSize-nPos; |