Kaydet (Commit) b6c97e3f authored tarafından Noel Grandin's avatar Noel Grandin

sal_Bool->bool

Change-Id: I9c6502d635f36bc619352d0c14e7d617bb4ee2f8
üst 4d29e945
...@@ -83,7 +83,7 @@ sal_uInt16 ScCollection::GetCount() const { return nCount; } ...@@ -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) if ((nCount < MAXCOLLECTIONSIZE) && (nIndex <= nCount) && pItems)
{ {
...@@ -101,14 +101,14 @@ sal_Bool ScCollection::AtInsert(sal_uInt16 nIndex, ScDataObject* pScDataObject) ...@@ -101,14 +101,14 @@ sal_Bool ScCollection::AtInsert(sal_uInt16 nIndex, ScDataObject* pScDataObject)
memmove(&pItems[nIndex + 1], &pItems[nIndex], (nCount - nIndex) * sizeof(ScDataObject*)); memmove(&pItems[nIndex + 1], &pItems[nIndex], (nCount - nIndex) * sizeof(ScDataObject*));
pItems[nIndex] = pScDataObject; pItems[nIndex] = pScDataObject;
nCount++; nCount++;
return sal_True; return true;
} }
return false; return false;
} }
//------------------------------------------------------------------------ //------------------------------------------------------------------------
sal_Bool ScCollection::Insert(ScDataObject* pScDataObject) bool ScCollection::Insert(ScDataObject* pScDataObject)
{ {
return AtInsert(nCount, pScDataObject); return AtInsert(nCount, pScDataObject);
} }
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
class ScDataObject class ScDataObject
{ {
public: public:
ScDataObject() {} ScDataObject() {}
virtual ~ScDataObject(); virtual ~ScDataObject();
virtual ScDataObject* Clone() const = 0; virtual ScDataObject* Clone() const = 0;
}; };
...@@ -36,23 +36,23 @@ protected: ...@@ -36,23 +36,23 @@ protected:
sal_uInt16 nCount; sal_uInt16 nCount;
sal_uInt16 nLimit; sal_uInt16 nLimit;
sal_uInt16 nDelta; sal_uInt16 nDelta;
ScDataObject** pItems; ScDataObject** pItems;
public: public:
ScCollection(sal_uInt16 nLim = 4, sal_uInt16 nDel = 4); ScCollection(sal_uInt16 nLim = 4, sal_uInt16 nDel = 4);
ScCollection(const ScCollection& rCollection); ScCollection(const ScCollection& rCollection);
virtual ~ScCollection(); virtual ~ScCollection();
virtual ScDataObject* Clone() const; virtual ScDataObject* Clone() const;
sal_Bool AtInsert(sal_uInt16 nIndex, ScDataObject* pScDataObject); bool AtInsert(sal_uInt16 nIndex, ScDataObject* pScDataObject);
virtual sal_Bool Insert(ScDataObject* pScDataObject); bool Insert(ScDataObject* pScDataObject);
ScDataObject* At(sal_uInt16 nIndex) const; ScDataObject* At(sal_uInt16 nIndex) const;
virtual sal_uInt16 IndexOf(ScDataObject* pScDataObject) const; sal_uInt16 IndexOf(ScDataObject* pScDataObject) const;
sal_uInt16 GetCount() const; sal_uInt16 GetCount() const;
ScDataObject* operator[]( const sal_uInt16 nIndex) const {return At(nIndex);} ScDataObject* operator[]( const sal_uInt16 nIndex) const { return At(nIndex); }
ScCollection& operator=( const ScCollection& rCol ); ScCollection& operator= ( const ScCollection& rCol );
}; };
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment