summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/crsr/findattr.cxx8
-rw-r--r--sw/source/core/crsr/findfmt.cxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/crsr/findattr.cxx b/sw/source/core/crsr/findattr.cxx
index 4d37a59864f7..26cd65669103 100644
--- a/sw/source/core/crsr/findattr.cxx
+++ b/sw/source/core/crsr/findattr.cxx
@@ -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
diff --git a/sw/source/core/crsr/findfmt.cxx b/sw/source/core/crsr/findfmt.cxx
index 09dc12a0a9fd..45dddfa3acb4 100644
--- a/sw/source/core/crsr/findfmt.cxx
+++ b/sw/source/core/crsr/findfmt.cxx
@@ -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