sw/source/core/edit/editsh.cxx | 2 +- sw/source/filter/basflt/shellio.cxx | 2 +- sw/source/uibase/shells/drwbassh.cxx | 4 ++-- sw/source/uibase/wrtsh/delete.cxx | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit f89b3d4bc24a3237f404bb6cb449ce28ce3f5a08 Author: udareechk <udare...@gmail.com> Date: Thu Sep 21 00:27:52 2017 +0530 tdf#96505 Get rid of cargo cult long integer literals Removed 0L and 1L in sw/source/ directory files Change-Id: I5c9a7c2f1ff7cc7a4d204540fd93efdc1b4859cf Reviewed-on: https://gerrit.libreoffice.org/42562 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Eike Rathke <er...@redhat.com> diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx index 492169cfa319..4c622b8fb6bf 100644 --- a/sw/source/core/edit/editsh.cxx +++ b/sw/source/core/edit/editsh.cxx @@ -194,7 +194,7 @@ long SwEditShell::SplitNode( bool bAutoFormat, bool bCheckTableStart ) ClearTableBoxContent(); EndAllAction(); - return 1L; + return 1; } bool SwEditShell::AppendTextNode() diff --git a/sw/source/filter/basflt/shellio.cxx b/sw/source/filter/basflt/shellio.cxx index 03496564fd45..8b66489885dd 100644 --- a/sw/source/filter/basflt/shellio.cxx +++ b/sw/source/filter/basflt/shellio.cxx @@ -483,7 +483,7 @@ SwDoc* Reader::GetTemplateDoc() // only one minute later check if it has changed aChkDateTime = aCurrDateTime; - aChkDateTime += tools::Time( 0L, 1L ); + aChkDateTime += tools::Time( 0, 1 ); } if (bLoad) diff --git a/sw/source/uibase/shells/drwbassh.cxx b/sw/source/uibase/shells/drwbassh.cxx index 99ada54d2d27..5c31e2215d6b 100644 --- a/sw/source/uibase/shells/drwbassh.cxx +++ b/sw/source/uibase/shells/drwbassh.cxx @@ -678,7 +678,7 @@ void SwDrawBaseShell::GetState(SfxItemSet& rSet) case FN_NAME_SHAPE : { - if(1L != pSdrView->GetMarkedObjectCount()) + if(1 != pSdrView->GetMarkedObjectCount()) { rSet.DisableItem( nWhich ); } @@ -690,7 +690,7 @@ void SwDrawBaseShell::GetState(SfxItemSet& rSet) { const bool bIsWebView(nullptr != dynamic_cast<SwWebView*>(&GetView())); - if(!bIsWebView && 1L != pSdrView->GetMarkedObjectCount()) + if(!bIsWebView && 1 != pSdrView->GetMarkedObjectCount()) { rSet.DisableItem( nWhich ); } diff --git a/sw/source/uibase/wrtsh/delete.cxx b/sw/source/uibase/wrtsh/delete.cxx index d839ba57bfe5..2b2c90f5ac2e 100644 --- a/sw/source/uibase/wrtsh/delete.cxx +++ b/sw/source/uibase/wrtsh/delete.cxx @@ -140,7 +140,7 @@ long SwWrtShell::DelLeft() GotoNextFly(); } - return 1L; + return 1; } // If a selection exists, erase this @@ -164,7 +164,7 @@ long SwWrtShell::DelLeft() } else EnterStdMode(); - return 1L; + return 1; } else EnterStdMode(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits