[Libreoffice-commits] core.git: sot/source svx/source

Yusuf Keten (via logerrit) logerrit at kemper.freedesktop.org
Thu Jan 2 18:59:30 UTC 2020


 sot/source/sdstor/stgdir.cxx                    |    2 +-
 svx/source/form/fmshimp.cxx                     |    2 +-
 svx/source/sdr/contact/viewcontactofvirtobj.cxx |    2 +-
 svx/source/svdraw/svdobj.cxx                    |    2 +-
 svx/source/svdraw/svdocapt.cxx                  |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 9ef226c581ddf025e36aebefaa48c051354c520b
Author:     Yusuf Keten <ketenyusuf at gmail.com>
AuthorDate: Sun Dec 29 02:52:10 2019 +0300
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Thu Jan 2 19:58:48 2020 +0100

    tdf#96505 Get rid of cargo cult long integer literals
    
    Change-Id: I6b21f25738458a1d85905a3a02eb17c51a626b0d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85932
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx
index f31488fd07c2..4002d637230d 100644
--- a/sot/source/sdstor/stgdir.cxx
+++ b/sot/source/sdstor/stgdir.cxx
@@ -478,7 +478,7 @@ sal_Int32 StgDirEntry::Write( const void* p, sal_Int32 nLen )
         if( nNew > m_pStgStrm->GetSize() )
         {
             if( !SetSize( nNew ) )
-                return 0L;
+                return 0;
             m_pStgStrm->Pos2Page( m_nPos );
         }
         nLen = m_pStgStrm->Write( p, nLen );
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx
index 845fbf030b85..ca14eef60bd8 100644
--- a/svx/source/form/fmshimp.cxx
+++ b/svx/source/form/fmshimp.cxx
@@ -2461,7 +2461,7 @@ IMPL_LINK(FmXFormShell, OnSearchContextRequest_Lock, FmSearchContext&, rfmscCont
         rfmscContextInfo.arrFields.clear();
         rfmscContextInfo.xCursor = nullptr;
         rfmscContextInfo.strUsedFields.clear();
-        return 0L;
+        return 0;
     }
 
     rfmscContextInfo.xCursor = xIter;
diff --git a/svx/source/sdr/contact/viewcontactofvirtobj.cxx b/svx/source/sdr/contact/viewcontactofvirtobj.cxx
index c78670aa03fb..4efb3d65797d 100644
--- a/svx/source/sdr/contact/viewcontactofvirtobj.cxx
+++ b/svx/source/sdr/contact/viewcontactofvirtobj.cxx
@@ -56,7 +56,7 @@ sal_uInt32 ViewContactOfVirtObj::GetObjectCount() const
 
     // As can be seen, with primitives, the problem will be solved using
     // a transformPrimitive, so this solution can stay with primitives.
-    return 0L;
+    return 0;
 }
 
 drawinglayer::primitive2d::Primitive2DContainer ViewContactOfVirtObj::createViewIndependentPrimitive2DSequence() const
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index 76338b2a144e..db6238c704ba 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -1691,7 +1691,7 @@ bool SdrObject::IsPolyObj() const
 
 sal_uInt32 SdrObject::GetPointCount() const
 {
-    return 0L;
+    return 0;
 }
 
 Point SdrObject::GetPoint(sal_uInt32 /*i*/) const
diff --git a/svx/source/svdraw/svdocapt.cxx b/svx/source/svdraw/svdocapt.cxx
index 81b34988f0bc..dc7bdaf3aa4d 100644
--- a/svx/source/svdraw/svdocapt.cxx
+++ b/svx/source/svdraw/svdocapt.cxx
@@ -654,7 +654,7 @@ void SdrCaptionObj::NbcSetTailPos(const Point& rPos)
 sal_uInt32 SdrCaptionObj::GetSnapPointCount() const
 {
     // TODO: Implementation missing.
-    return 0L;
+    return 0;
 }
 
 Point SdrCaptionObj::GetSnapPoint(sal_uInt32 /*i*/) const


More information about the Libreoffice-commits mailing list