summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorudareechk <udareeck@gmail.com>2017-09-21 00:27:52 +0530
committerEike Rathke <erack@redhat.com>2017-10-05 17:58:39 +0200
commitf89b3d4bc24a3237f404bb6cb449ce28ce3f5a08 (patch)
treeb3bd54d68a28bc29ca4e3d7b567ddad4fc1afa63
parent2f3b95246362aa8290e06b29fc44ee8dafa48aa8 (diff)
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 <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
-rw-r--r--sw/source/core/edit/editsh.cxx2
-rw-r--r--sw/source/filter/basflt/shellio.cxx2
-rw-r--r--sw/source/uibase/shells/drwbassh.cxx4
-rw-r--r--sw/source/uibase/wrtsh/delete.cxx4
4 files changed, 6 insertions, 6 deletions
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();