Kaydet (Commit) 30eb1d62 authored tarafından Philipp Riemer's avatar Philipp Riemer Kaydeden (comit) Bjoern Michaelsen

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
üst 611eb8ed
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment