diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-17 17:11:45 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-17 18:45:16 +0100 |
commit | c963d7e642c24f40c19fb9dc227db5da96728c12 (patch) | |
tree | 81fbcb736dad59a7e0d3bcd8f9e6b84e99bb5607 /sw/source/core/doc/fmtcol.cxx | |
parent | 8711842d1b861544ed4a934f675adbed7cf83f32 (diff) |
bool improvements
Change-Id: I9324483db587be43238af79c2148d724397a4622
Diffstat (limited to 'sw/source/core/doc/fmtcol.cxx')
-rw-r--r-- | sw/source/core/doc/fmtcol.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/doc/fmtcol.cxx b/sw/source/core/doc/fmtcol.cxx index 80823a88ac93..dddc0d525873 100644 --- a/sw/source/core/doc/fmtcol.cxx +++ b/sw/source/core/doc/fmtcol.cxx @@ -203,13 +203,13 @@ void SwTxtFmtColl::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew ) this, pNewNumRuleItem ); } - int bContinue = sal_True; + bool bContinue = true; // Check against the own attributes if( pNewLRSpace && SFX_ITEM_SET == GetItemState( RES_LR_SPACE, sal_False, (const SfxPoolItem**)&pOldLRSpace )) { - int bChg = sal_False; + bool bChg = false; if( pOldLRSpace != pNewLRSpace ) // Avoid recursion (SetAttr!) { SvxLRSpaceItem aNew( *pOldLRSpace ); @@ -252,7 +252,7 @@ void SwTxtFmtColl::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew ) pOldULSpace != pNewULSpace ) // Avoid recursion (SetAttr!) { SvxULSpaceItem aNew( *pOldULSpace ); - int bChg = sal_False; + bool bChg = false; // We had a relative value -> recalculate if( 100 != aNew.GetPropUpper() ) { @@ -502,9 +502,9 @@ void SwCollCondition::RegisterToFormat( SwFmt& rFmt ) rFmt.Add( this ); } -int SwCollCondition::operator==( const SwCollCondition& rCmp ) const +bool SwCollCondition::operator==( const SwCollCondition& rCmp ) const { - int nRet = 0; + bool nRet = false; if( nCondition == rCmp.nCondition ) { if( USRFLD_EXPRESSION & nCondition ) @@ -528,7 +528,7 @@ int SwCollCondition::operator==( const SwCollCondition& rCmp ) const } else if( aSubCondition.nSubCondition == rCmp.aSubCondition.nSubCondition ) - nRet = 1; + nRet = true; } return nRet; } |