summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/ndsect.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-20 13:29:19 +0200
committerNoel Grandin <noel@peralex.com>2015-08-20 13:52:18 +0200
commit2675fde1aace586300741207d0dfbf3d7deae867 (patch)
tree2abc8ff84289f85186edc65d5352ce835de18863 /sw/source/core/docnode/ndsect.cxx
parentb8e48824bf5b71599c0b8604c444d653fad57e5a (diff)
loplugin: defaultparams
Change-Id: I36c7086117112d35df98c05030c965c21d9330ac
Diffstat (limited to 'sw/source/core/docnode/ndsect.cxx')
-rw-r--r--sw/source/core/docnode/ndsect.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx
index 22f4a5f34941..e4a760efa6bf 100644
--- a/sw/source/core/docnode/ndsect.cxx
+++ b/sw/source/core/docnode/ndsect.cxx
@@ -1264,12 +1264,12 @@ SwSectionNode* SwSectionNode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) c
pNewSect->SetCondition( GetSection().GetCondition() );
pNewSect->SetLinkFileName( GetSection().GetLinkFileName() );
if( !pNewSect->IsHiddenFlag() && GetSection().IsHidden() )
- pNewSect->SetHidden( true );
+ pNewSect->SetHidden();
if( !pNewSect->IsProtectFlag() && GetSection().IsProtect() )
- pNewSect->SetProtect( true );
+ pNewSect->SetProtect();
// edit in readonly sections
if( !pNewSect->IsEditInReadonlyFlag() && GetSection().IsEditInReadonly() )
- pNewSect->SetEditInReadonly( true );
+ pNewSect->SetEditInReadonly();
SwNodeRange aRg( *this, +1, *EndOfSectionNode() ); // Where am I?
rNds._Copy( aRg, aInsPos, false );
@@ -1400,7 +1400,7 @@ OUString SwDoc::GetUniqueSectionName( const OUString* pChkStr ) const
for( auto pFormat : *mpSectionFormatTable )
{
- const SwSectionNode *const pSectNd = pFormat->GetSectionNode( false );
+ const SwSectionNode *const pSectNd = pFormat->GetSectionNode();
if( pSectNd != nullptr )
{
const OUString rNm = pSectNd->GetSection().GetSectionName();