summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-04-19 14:31:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-04-20 10:01:54 +0200
commit5b38e1e82439d6338b08f2695712c038f32d2b52 (patch)
tree1963ba9dd7d0798c9b1e6ee9007d1e501c52129a /sw/source
parent4aea0b8423ab8f4d7942d66e61d64de448357c73 (diff)
loplugin:constantparam in sw
Change-Id: Ia1379762ba957097a1a2134c5d206f254e22683b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166313 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/edit/ednumber.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/core/edit/ednumber.cxx b/sw/source/core/edit/ednumber.cxx
index 625cd43cb1c8..372e7b1e48ad 100644
--- a/sw/source/core/edit/ednumber.cxx
+++ b/sw/source/core/edit/ednumber.cxx
@@ -628,15 +628,13 @@ bool SwEditShell::IsOutlineCopyable( SwOutlineNodes::size_type nIdx ) const
return lcl_IsOutlineMoveAndCopyable( *this, nIdx, true );
}
-bool SwEditShell::NumOrNoNum(
- bool bNumOn,
- bool bChkStart )
+bool SwEditShell::NumOrNoNum( bool bNumOn )
{
bool bRet = false;
if ( !IsMultiSelection()
&& !HasSelection()
- && ( !bChkStart || IsSttPara() ) )
+ && IsSttPara() )
{
StartAllAction();
SwPosition const pos(sw::GetParaPropsPos(*GetLayout(), *GetCursor()->GetPoint()));
@@ -646,14 +644,14 @@ bool SwEditShell::NumOrNoNum(
return bRet;
}
-bool SwEditShell::IsNoNum( bool bChkStart ) const
+bool SwEditShell::IsNoNum() const
{
// a Backspace in the paragraph without number becomes a Delete
bool bResult = false;
if ( !IsMultiSelection()
&& !HasSelection()
- && ( !bChkStart || IsSttPara() ) )
+ && IsSttPara() )
{
const SwTextNode* pTextNd = sw::GetParaPropsNode(*GetLayout(), GetCursor()->GetPoint()->GetNode());
if ( pTextNd != nullptr )