summaryrefslogtreecommitdiff
path: root/sw/source/core/crsr/trvlreg.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-28 19:59:54 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-28 20:26:21 +0100
commit8bc3751ea3ce1162137df2d0e10502cd24a3cb92 (patch)
tree6e0a16a99e7e9c20bfdb97510da35df9af5256fa /sw/source/core/crsr/trvlreg.cxx
parent7dca2dd95b21df2b36c6a8e7e9edfb49dbd2acd1 (diff)
bool improvements
Change-Id: Ibeb658e73b588f90242c95d23149f2ef45a7a815
Diffstat (limited to 'sw/source/core/crsr/trvlreg.cxx')
-rw-r--r--sw/source/core/crsr/trvlreg.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/crsr/trvlreg.cxx b/sw/source/core/crsr/trvlreg.cxx
index e123a5437400..04df75b3bbb0 100644
--- a/sw/source/core/crsr/trvlreg.cxx
+++ b/sw/source/core/crsr/trvlreg.cxx
@@ -53,7 +53,7 @@ sal_Bool GotoPrevRegion( SwPaM& rCurCrsr, SwPosRegion fnPosRegion,
{
aIdx = *pNd;
SwCntntNode* pCNd = pNd->GetNodes().GoNextSection( &aIdx,
- sal_True, !bInReadOnly );
+ true, !bInReadOnly );
if( !pCNd )
{
aIdx--;
@@ -65,7 +65,7 @@ sal_Bool GotoPrevRegion( SwPaM& rCurCrsr, SwPosRegion fnPosRegion,
{
aIdx = *pNd->EndOfSectionNode();
SwCntntNode* pCNd = pNd->GetNodes().GoPrevSection( &aIdx,
- sal_True, !bInReadOnly );
+ true, !bInReadOnly );
if( !pCNd )
{
aIdx.Assign( *pNd, - 1 );
@@ -107,7 +107,7 @@ sal_Bool GotoNextRegion( SwPaM& rCurCrsr, SwPosRegion fnPosRegion,
{
aIdx = *pNd;
SwCntntNode* pCNd = pNd->GetNodes().GoNextSection( &aIdx,
- sal_True, !bInReadOnly );
+ true, !bInReadOnly );
if( !pCNd )
{
aIdx.Assign( *pNd->EndOfSectionNode(), +1 );
@@ -119,7 +119,7 @@ sal_Bool GotoNextRegion( SwPaM& rCurCrsr, SwPosRegion fnPosRegion,
{
aIdx = *pNd->EndOfSectionNode();
SwCntntNode* pCNd = pNd->GetNodes().GoPrevSection( &aIdx,
- sal_True, !bInReadOnly );
+ true, !bInReadOnly );
if( !pCNd )
{
++aIdx;
@@ -148,12 +148,12 @@ sal_Bool GotoCurrRegion( SwPaM& rCurCrsr, SwPosRegion fnPosRegion,
if( bMoveBackward )
{
SwNodeIndex aIdx( *pNd->EndOfSectionNode() );
- pCNd = pNd->GetNodes().GoPrevSection( &aIdx, sal_True, !bInReadOnly );
+ pCNd = pNd->GetNodes().GoPrevSection( &aIdx, true, !bInReadOnly );
}
else
{
SwNodeIndex aIdx( *pNd );
- pCNd = pNd->GetNodes().GoNextSection( &aIdx, sal_True, !bInReadOnly );
+ pCNd = pNd->GetNodes().GoNextSection( &aIdx, true, !bInReadOnly );
}
if( pCNd )
@@ -181,7 +181,7 @@ sal_Bool GotoCurrRegionAndSkip( SwPaM& rCurCrsr, SwPosRegion fnPosRegion,
if( bMoveBackward ) // to the end of the section
{
SwNodeIndex aIdx( *pNd->EndOfSectionNode() );
- pCNd = pNd->GetNodes().GoPrevSection( &aIdx, sal_True, !bInReadOnly );
+ pCNd = pNd->GetNodes().GoPrevSection( &aIdx, true, !bInReadOnly );
if( !pCNd )
return sal_False;
pPos->nNode = aIdx;
@@ -189,7 +189,7 @@ sal_Bool GotoCurrRegionAndSkip( SwPaM& rCurCrsr, SwPosRegion fnPosRegion,
else
{
SwNodeIndex aIdx( *pNd );
- pCNd = pNd->GetNodes().GoNextSection( &aIdx, sal_True, !bInReadOnly );
+ pCNd = pNd->GetNodes().GoNextSection( &aIdx, true, !bInReadOnly );
if( !pCNd )
return sal_False;
pPos->nNode = aIdx;