From 6437ca429386910c80ec24b86feb17eca78d2faa Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 18 Nov 2011 12:23:58 -0500 Subject: sal_Bool to bool and other cleanup. --- sc/source/filter/excel/excimp8.cxx | 2 +- sc/source/filter/inc/excimp8.hxx | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'sc') diff --git a/sc/source/filter/excel/excimp8.cxx b/sc/source/filter/excel/excimp8.cxx index 2510752cb497..7920e3387955 100644 --- a/sc/source/filter/excel/excimp8.cxx +++ b/sc/source/filter/excel/excimp8.cxx @@ -707,7 +707,7 @@ void XclImpAutoFilterData::SetAdvancedRange( const ScRange* pRange ) if (pRange) { aCriteriaRange = *pRange; - bCriteria = sal_True; + bCriteria = true; } else bCriteria = false; diff --git a/sc/source/filter/inc/excimp8.hxx b/sc/source/filter/inc/excimp8.hxx index 77aaffe67176..2bc75e091feb 100644 --- a/sc/source/filter/inc/excimp8.hxx +++ b/sc/source/filter/inc/excimp8.hxx @@ -100,16 +100,15 @@ class XclImpAutoFilterData : private ExcRoot private: ScDBData* pCurrDBData; ScQueryParam aParam; - sal_Bool bActive; - sal_Bool bHasConflict; - sal_Bool bCriteria; - sal_Bool bAutoOrAdvanced; ScRange aCriteriaRange; + bool bActive:1; + bool bHasConflict:1; + bool bCriteria:1; + bool bAutoOrAdvanced:1; void CreateFromDouble( rtl::OUString& rStr, double fVal ); void SetCellAttribs(); void InsertQueryParam(); - void AmendAFName(const sal_Bool bUseUnNamed); protected: public: @@ -127,10 +126,10 @@ public: void ReadAutoFilter( XclImpStream& rStrm ); - inline void Activate() { bActive = sal_True; } + inline void Activate() { bActive = true; } void SetAdvancedRange( const ScRange* pRange ); void SetExtractPos( const ScAddress& rAddr ); - inline void SetAutoOrAdvanced() { bAutoOrAdvanced = sal_True; } + inline void SetAutoOrAdvanced() { bAutoOrAdvanced = true; } void Apply(); void CreateScDBData(); void EnableRemoveFilter(); -- cgit