diff options
author | Philipp Riemer <ruderphilipp@gmail.com> | 2012-07-09 10:46:21 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2012-07-09 19:19:54 +0200 |
commit | 30eb1d6211764da77b2b13b2f6074b40e70a6f29 (patch) | |
tree | 2dbd707287050bed92db22be6f31c90a85b6c56e /sw | |
parent | 611eb8eddc86a62f46d3cb81729ea07f88c67732 (diff) |
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
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/findattr.cxx | 8 | ||||
-rw-r--r-- | sw/source/core/crsr/findfmt.cxx | 2 |
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 |