sal_Bool => bool if internal use only (in sw/source/core/crsr/)

while we are at it, make the bool const too

Change-Id: Iedf20880edaa454d55c45c70ed0e6dce3fa90623
This commit is contained in:
Philipp Riemer
2012-07-09 10:46:21 +02:00
committed by Bjoern Michaelsen
parent 611eb8eddc
commit 30eb1d6211
2 changed files with 5 additions and 5 deletions

View File

@@ -115,7 +115,7 @@ void lcl_SetAttrPam( SwPaM& rPam, xub_StrLen nStart, const xub_StrLen* pEnd,
nCntntPos = rPam.GetMark()->nContent.GetIndex(); nCntntPos = rPam.GetMark()->nContent.GetIndex();
else else
nCntntPos = rPam.GetPoint()->nContent.GetIndex(); nCntntPos = rPam.GetPoint()->nContent.GetIndex();
sal_Bool bTstEnd = rPam.GetPoint()->nNode == rPam.GetMark()->nNode; bool bTstEnd = rPam.GetPoint()->nNode == rPam.GetMark()->nNode;
SwCntntNode* pCNd = rPam.GetCntntNode(); SwCntntNode* pCNd = rPam.GetCntntNode();
rPam.GetPoint()->nContent.Assign( pCNd, nStart ); rPam.GetPoint()->nContent.Assign( pCNd, nStart );
@@ -407,7 +407,7 @@ int SwAttrCheckArr::SetAttrFwd( const SwTxtAttr& rAttr )
} }
} }
sal_Bool bContinue = sal_False; bool bContinue = false;
if( SFX_ITEM_DONTCARE == eState ) if( SFX_ITEM_DONTCARE == eState )
{ {
@@ -424,7 +424,7 @@ int SwAttrCheckArr::SetAttrFwd( const SwTxtAttr& rAttr )
else if( pCmp->nEnd < aTmp.nEnd ) // extend? else if( pCmp->nEnd < aTmp.nEnd ) // extend?
pCmp->nEnd = aTmp.nEnd; pCmp->nEnd = aTmp.nEnd;
bContinue = sal_True; bContinue = true;
} }
} }
// Will the attribute become valid? // Will the attribute become valid?
@@ -432,7 +432,7 @@ int SwAttrCheckArr::SetAttrFwd( const SwTxtAttr& rAttr )
{ {
pFndArr[ nWhch - nArrStart ] = aTmp; pFndArr[ nWhch - nArrStart ] = aTmp;
++nFound; ++nFound;
bContinue = sal_True; bContinue = true;
} }
// then is has to go on the stack // then is has to go on the stack

View File

@@ -34,7 +34,7 @@ sal_Bool SwPaM::Find( const SwFmt& rFmt, SwMoveFn fnMove,
const SwPaM *pRegion, sal_Bool bInReadOnly ) const SwPaM *pRegion, sal_Bool bInReadOnly )
{ {
sal_Bool bFound = sal_False; sal_Bool bFound = sal_False;
sal_Bool bSrchForward = fnMove == fnMoveForward; const bool bSrchForward = (fnMove == fnMoveForward);
SwPaM* pPam = MakeRegion( fnMove, pRegion ); SwPaM* pPam = MakeRegion( fnMove, pRegion );
// if at beginning/end then move it out of the node // if at beginning/end then move it out of the node