diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-04 09:24:56 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-04 11:48:04 +0200 |
commit | 9cc8a26fcdd4dbf7d5d65869bf84b824339751ce (patch) | |
tree | b08de712db450099763ab9cd4e175354ad4c9837 /sw/source/core/edit | |
parent | 9a1e6d916eff1236cc1be2056c91e56018a482bf (diff) |
loplugin:unuseddefaultparam in sw
Change-Id: I1a8a25c09ae0c8ba39fcedb032562df93fdd6ba4
Diffstat (limited to 'sw/source/core/edit')
-rw-r--r-- | sw/source/core/edit/ednumber.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/edit/edsect.cxx | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/sw/source/core/edit/ednumber.cxx b/sw/source/core/edit/ednumber.cxx index 1ab81d874102..6fe38d1adc7e 100644 --- a/sw/source/core/edit/ednumber.cxx +++ b/sw/source/core/edit/ednumber.cxx @@ -775,9 +775,9 @@ void SwEditShell::SetCurNumRule( const SwNumRule& rRule, EndAllAction(); } -OUString SwEditShell::GetUniqueNumRuleName( const OUString* pChkStr ) const +OUString SwEditShell::GetUniqueNumRuleName() const { - return GetDoc()->GetUniqueNumRuleName( pChkStr ); + return GetDoc()->GetUniqueNumRuleName(); } void SwEditShell::ChgNumRuleFormats( const SwNumRule& rRule ) diff --git a/sw/source/core/edit/edsect.cxx b/sw/source/core/edit/edsect.cxx index 252cd2678a1b..060a26872ee8 100644 --- a/sw/source/core/edit/edsect.cxx +++ b/sw/source/core/edit/edsect.cxx @@ -115,7 +115,7 @@ size_t SwEditShell::GetSectionFormatCount() const return GetDoc()->GetSections().size(); } -bool SwEditShell::IsAnySectionInDoc( bool bChkReadOnly, bool bChkHidden ) const +bool SwEditShell::IsAnySectionInDoc( bool bChkReadOnly ) const { const SwSectionFormats& rFormats = GetDoc()->GetSections(); @@ -127,9 +127,8 @@ bool SwEditShell::IsAnySectionInDoc( bool bChkReadOnly, bool bChkHidden ) const && TOX_HEADER_SECTION != eTmpType ) ) { const SwSection& rSect = *pFormat->GetSection(); - if( (!bChkReadOnly && !bChkHidden ) || - (bChkReadOnly && rSect.IsProtectFlag() ) || - (bChkHidden && rSect.IsHiddenFlag() ) ) + if( !bChkReadOnly || + (bChkReadOnly && rSect.IsProtectFlag() ) ) return true; } } |