diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-12 16:03:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-14 14:15:13 +0200 |
commit | b6c97e3facc4f05d59bb9bee2b9a4b2cfaa5d587 (patch) | |
tree | 49ccc78e1eab0d29cafa6da006162807f1ca2b34 /sc | |
parent | 4d29e945b9e4504c6ec59141cdba099499520e06 (diff) |
sal_Bool->bool
Change-Id: I9c6502d635f36bc619352d0c14e7d617bb4ee2f8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/starcalc/collect.cxx | 6 | ||||
-rw-r--r-- | sc/source/filter/starcalc/collect.hxx | 20 |
2 files changed, 13 insertions, 13 deletions
diff --git a/sc/source/filter/starcalc/collect.cxx b/sc/source/filter/starcalc/collect.cxx index d6c3c5de049a..65cb1d1158fd 100644 --- a/sc/source/filter/starcalc/collect.cxx +++ b/sc/source/filter/starcalc/collect.cxx @@ -83,7 +83,7 @@ sal_uInt16 ScCollection::GetCount() const { return nCount; } //------------------------------------------------------------------------ -sal_Bool ScCollection::AtInsert(sal_uInt16 nIndex, ScDataObject* pScDataObject) +bool ScCollection::AtInsert(sal_uInt16 nIndex, ScDataObject* pScDataObject) { if ((nCount < MAXCOLLECTIONSIZE) && (nIndex <= nCount) && pItems) { @@ -101,14 +101,14 @@ sal_Bool ScCollection::AtInsert(sal_uInt16 nIndex, ScDataObject* pScDataObject) memmove(&pItems[nIndex + 1], &pItems[nIndex], (nCount - nIndex) * sizeof(ScDataObject*)); pItems[nIndex] = pScDataObject; nCount++; - return sal_True; + return true; } return false; } //------------------------------------------------------------------------ -sal_Bool ScCollection::Insert(ScDataObject* pScDataObject) +bool ScCollection::Insert(ScDataObject* pScDataObject) { return AtInsert(nCount, pScDataObject); } diff --git a/sc/source/filter/starcalc/collect.hxx b/sc/source/filter/starcalc/collect.hxx index a8249759d26a..33001f881b4c 100644 --- a/sc/source/filter/starcalc/collect.hxx +++ b/sc/source/filter/starcalc/collect.hxx @@ -25,7 +25,7 @@ class ScDataObject { public: - ScDataObject() {} + ScDataObject() {} virtual ~ScDataObject(); virtual ScDataObject* Clone() const = 0; }; @@ -36,23 +36,23 @@ protected: sal_uInt16 nCount; sal_uInt16 nLimit; sal_uInt16 nDelta; - ScDataObject** pItems; + ScDataObject** pItems; public: ScCollection(sal_uInt16 nLim = 4, sal_uInt16 nDel = 4); ScCollection(const ScCollection& rCollection); - virtual ~ScCollection(); + virtual ~ScCollection(); virtual ScDataObject* Clone() const; - sal_Bool AtInsert(sal_uInt16 nIndex, ScDataObject* pScDataObject); - virtual sal_Bool Insert(ScDataObject* pScDataObject); + bool AtInsert(sal_uInt16 nIndex, ScDataObject* pScDataObject); + bool Insert(ScDataObject* pScDataObject); - ScDataObject* At(sal_uInt16 nIndex) const; - virtual sal_uInt16 IndexOf(ScDataObject* pScDataObject) const; - sal_uInt16 GetCount() const; + ScDataObject* At(sal_uInt16 nIndex) const; + sal_uInt16 IndexOf(ScDataObject* pScDataObject) const; + sal_uInt16 GetCount() const; - ScDataObject* operator[]( const sal_uInt16 nIndex) const {return At(nIndex);} - ScCollection& operator=( const ScCollection& rCol ); + ScDataObject* operator[]( const sal_uInt16 nIndex) const { return At(nIndex); } + ScCollection& operator= ( const ScCollection& rCol ); }; #endif |