summaryrefslogtreecommitdiff
path: root/sw/source/core/crsr/trvlreg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/crsr/trvlreg.cxx')
-rw-r--r--sw/source/core/crsr/trvlreg.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/crsr/trvlreg.cxx b/sw/source/core/crsr/trvlreg.cxx
index bfef7e09e58a..c9174131cea1 100644
--- a/sw/source/core/crsr/trvlreg.cxx
+++ b/sw/source/core/crsr/trvlreg.cxx
@@ -96,7 +96,7 @@ sal_Bool GotoNextRegion( SwPaM& rCurCrsr, SwPosRegion fnPosRegion,
do {
while( aIdx.GetIndex() < nEndCount &&
0 == ( pNd = aIdx.GetNode().GetSectionNode()) )
- aIdx++;
+ ++aIdx;
if( pNd ) // is there another section node?
{
@@ -126,7 +126,7 @@ sal_Bool GotoNextRegion( SwPaM& rCurCrsr, SwPosRegion fnPosRegion,
sal_True, !bInReadOnly );
if( !pCNd )
{
- aIdx++;
+ ++aIdx;
continue;
}
rCurCrsr.GetPoint()->nContent.Assign( pCNd, pCNd->Len() );
@@ -240,9 +240,9 @@ sal_Bool SwCrsrShell::MoveRegion( SwWhichRegion fnWhichRegion, SwPosRegion fnPos
}
-sal_Bool SwCursor::GotoRegion( const String& rName )
+bool SwCursor::GotoRegion( const String& rName )
{
- sal_Bool bRet = sal_False;
+ bool bRet = false;
const SwSectionFmts& rFmts = GetDoc()->GetSections();
for( sal_uInt16 n = rFmts.size(); n; )
{
@@ -265,10 +265,10 @@ sal_Bool SwCursor::GotoRegion( const String& rName )
return bRet;
}
-sal_Bool SwCrsrShell::GotoRegion( const String& rName )
+bool SwCrsrShell::GotoRegion( const String& rName )
{
SwCallLink aLk( *this ); // watch Crsr-Moves;call Link if needed
- sal_Bool bRet = !pTblCrsr && pCurCrsr->GotoRegion( rName );
+ bool bRet = !pTblCrsr && pCurCrsr->GotoRegion( rName );
if( bRet )
UpdateCrsr( SwCrsrShell::SCROLLWIN | SwCrsrShell::CHKRANGE |
SwCrsrShell::READONLY );