summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-18 12:23:58 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-18 14:13:24 -0500
commit6437ca429386910c80ec24b86feb17eca78d2faa (patch)
tree4d47dea29b4db007464159d62c3172c5be249a50 /sc
parent73ed12a50655b4053cfae7139507f1d4f5c2fb7e (diff)
sal_Bool to bool and other cleanup.
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/excimp8.cxx2
-rw-r--r--sc/source/filter/inc/excimp8.hxx13
2 files changed, 7 insertions, 8 deletions
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();