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:
committed by
Bjoern Michaelsen
parent
611eb8eddc
commit
30eb1d6211
@@ -115,7 +115,7 @@ void lcl_SetAttrPam( SwPaM& rPam, xub_StrLen nStart, const xub_StrLen* pEnd,
|
||||
nCntntPos = rPam.GetMark()->nContent.GetIndex();
|
||||
else
|
||||
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();
|
||||
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 )
|
||||
{
|
||||
@@ -424,7 +424,7 @@ int SwAttrCheckArr::SetAttrFwd( const SwTxtAttr& rAttr )
|
||||
else if( pCmp->nEnd < aTmp.nEnd ) // extend?
|
||||
pCmp->nEnd = aTmp.nEnd;
|
||||
|
||||
bContinue = sal_True;
|
||||
bContinue = true;
|
||||
}
|
||||
}
|
||||
// Will the attribute become valid?
|
||||
@@ -432,7 +432,7 @@ int SwAttrCheckArr::SetAttrFwd( const SwTxtAttr& rAttr )
|
||||
{
|
||||
pFndArr[ nWhch - nArrStart ] = aTmp;
|
||||
++nFound;
|
||||
bContinue = sal_True;
|
||||
bContinue = true;
|
||||
}
|
||||
|
||||
// then is has to go on the stack
|
||||
|
@@ -34,7 +34,7 @@ sal_Bool SwPaM::Find( const SwFmt& rFmt, SwMoveFn fnMove,
|
||||
const SwPaM *pRegion, sal_Bool bInReadOnly )
|
||||
{
|
||||
sal_Bool bFound = sal_False;
|
||||
sal_Bool bSrchForward = fnMove == fnMoveForward;
|
||||
const bool bSrchForward = (fnMove == fnMoveForward);
|
||||
SwPaM* pPam = MakeRegion( fnMove, pRegion );
|
||||
|
||||
// if at beginning/end then move it out of the node
|
||||
|
Reference in New Issue
Block a user