summaryrefslogtreecommitdiff
path: root/sw/source/core/crsr/crsrsh.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-20 13:18:53 +0200
committerNoel Grandin <noel@peralex.com>2015-08-20 13:52:17 +0200
commitb8e48824bf5b71599c0b8604c444d653fad57e5a (patch)
tree269c13e8b7e79547de6a2ab1c317391715f82d8d /sw/source/core/crsr/crsrsh.cxx
parent7d769f9df5b95d717f3cd045dbd8f82ff2de27a1 (diff)
loplugin: defaultparams
Change-Id: If105665a016183f08a2be13366e5068060b5954c
Diffstat (limited to 'sw/source/core/crsr/crsrsh.cxx')
-rw-r--r--sw/source/core/crsr/crsrsh.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index f7406cbe5a88..5a2b487f6ac9 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -854,7 +854,7 @@ int SwCrsrShell::SetCrsr( const Point &rLPt, bool bOnlyText, bool bBlock )
m_bAllProtect = true;
if( GetDoc()->GetDocShell() )
{
- GetDoc()->GetDocShell()->SetReadOnlyUI( true );
+ GetDoc()->GetDocShell()->SetReadOnlyUI();
CallChgLnk(); // notify UI
}
}
@@ -1416,7 +1416,7 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, bool bIdleEnd )
if( pTstCrsr->HasMark() && !m_pBlockCrsr &&
mpDoc->IsIdxInTable( pTstCrsr->GetPoint()->nNode ) &&
( m_pTableCrsr ||
- pTstCrsr->GetNode( true ).StartOfSectionNode() !=
+ pTstCrsr->GetNode().StartOfSectionNode() !=
pTstCrsr->GetNode( false ).StartOfSectionNode() ) && !mbSelectAll)
{
SwShellCrsr* pITmpCrsr = getShellCrsr( true );
@@ -1603,7 +1603,7 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, bool bIdleEnd )
m_bAllProtect = true;
if( GetDoc()->GetDocShell() )
{
- GetDoc()->GetDocShell()->SetReadOnlyUI( true );
+ GetDoc()->GetDocShell()->SetReadOnlyUI();
CallChgLnk(); // notify UI!
}
return;
@@ -1701,7 +1701,7 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, bool bIdleEnd )
m_bAllProtect = true;
if( GetDoc()->GetDocShell() )
{
- GetDoc()->GetDocShell()->SetReadOnlyUI( true );
+ GetDoc()->GetDocShell()->SetReadOnlyUI();
CallChgLnk(); // notify UI!
}
return;
@@ -2377,7 +2377,7 @@ bool SwCrsrShell::SetVisCrsr( const Point &rPt )
m_aCrsrHeight.setY(m_aCharRect.Height());
}
- m_pVisCrsr->SetDragCrsr( true );
+ m_pVisCrsr->SetDragCrsr();
m_pVisCrsr->Show(); // show again
}
return bRet;
@@ -2814,10 +2814,10 @@ bool SwCrsrShell::FindValidContentNode( bool bOnlyText )
aPam.GetPoint()->nNode = *pCNd->EndOfSectionNode();
bool bFirst = false;
- if( 0 == (pCNd = ::GetNode( aPam, bFirst, fnMoveForward, false )))
+ if( 0 == (pCNd = ::GetNode( aPam, bFirst, fnMoveForward )))
{
aPam.GetMark()->nNode = *rNds.GetEndOfPostIts().StartOfSectionNode();
- pCNd = ::GetNode( aPam, bFirst, fnMoveBackward, false );
+ pCNd = ::GetNode( aPam, bFirst, fnMoveBackward );
}
if( !pCNd ) // should *never* happen
@@ -2898,7 +2898,7 @@ bool SwCrsrShell::FindValidContentNode( bool bOnlyText )
SwCallLink aTmp( *this );
SwCrsrSaveState aSaveState( *m_pCurCrsr );
aTmp.nNdTyp = 0; // don't do anything in DTOR
- if( !m_pCurCrsr->IsInProtectTable( true, true ) )
+ if( !m_pCurCrsr->IsInProtectTable( true ) )
{
const SwSectionNode* pSNd = pCNd->FindSectionNode();
if( !pSNd || !pSNd->GetSection().IsHiddenFlag()