diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-02 10:41:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-06-03 08:21:39 +0200 |
commit | 2537d2dd496c0d05042ca33b99760de79df67682 (patch) | |
tree | 80796bedaf348d58b621df99d167308f7651633b /filter | |
parent | 418c5f7a4911bb2f1a06858556131b1bc4ad54f6 (diff) |
convert some sal_uInt8 fields to bool
Change-Id: Icd5845367157cc0b0c9342c6037b199c49432a76
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/dffpropset.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/filter/source/msfilter/dffpropset.cxx b/filter/source/msfilter/dffpropset.cxx index 189ff085234a..99b33d563146 100644 --- a/filter/source/msfilter/dffpropset.cxx +++ b/filter/source/msfilter/dffpropset.cxx @@ -1146,11 +1146,11 @@ void DffPropSet::ReadPropSet( SvStream& rIn, bool bSetUninitializedOnly ) { bool bSetProperty = !bSetUninitializedOnly || ( !IsProperty( nRecType ) || !IsHardAttribute( nRecType ) ); - DffPropFlags aPropFlag = { 1, 0, 0, 0 }; + DffPropFlags aPropFlag = { true, false, false, false }; if ( nTmp & 0x4000 ) - aPropFlag.bBlip = sal_True; + aPropFlag.bBlip = true; if ( nTmp & 0x8000 ) - aPropFlag.bComplex = sal_True; + aPropFlag.bComplex = true; if ( aPropFlag.bComplex && nContent && ( nComplexDataFilePos < aHd.GetRecEndFilePos() ) ) { // normally nContent is the complete size of the complex property, @@ -1201,7 +1201,7 @@ void DffPropSet::ReadPropSet( SvStream& rIn, bool bSetUninitializedOnly ) nComplexDataFilePos += nContent; // store filepos, that is used for the next complex property } else // a complex property needs content - aPropFlag.bSet = sal_False; // otherwise something is wrong + aPropFlag.bSet = false; // otherwise something is wrong } if ( bSetProperty ) { @@ -1272,7 +1272,7 @@ bool DffPropSet::IsHardAttribute( sal_uInt32 nId ) const bRetValue = (mpPropSetEntries[nId | 0x3f].nComplexIndexOrFlagsHAttr & (1 << (0xf - (nId & 0xf)))) != 0; else - bRetValue = ( mpPropSetEntries[ nId ].aFlags.bSoftAttr == 0 ); + bRetValue = ( mpPropSetEntries[ nId ].aFlags.bSoftAttr == false ); return bRetValue; }; |