summaryrefslogtreecommitdiff
path: root/common/array.h
diff options
context:
space:
mode:
authorleo2001-01-07 15:01:51 +0000
committerleo2001-01-07 15:01:51 +0000
commit5e30e9a7197c6b4d233374ca88765d02114d97c3 (patch)
tree420aa6a315a80faf8233e0fafccdbfc9811080cd /common/array.h
parentab6d702f49536844ae19f30c884a9b5436e0f927 (diff)
Use signed ints to avoid warnings in the rest of the code
git-svn-id: http://svn.leocad.org/trunk@212 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/array.h')
-rwxr-xr-xcommon/array.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/common/array.h b/common/array.h
index bb235a9..c8ce59c 100755
--- a/common/array.h
+++ b/common/array.h
@@ -5,26 +5,26 @@ template <class T>
class PtrArray
{
public:
- PtrArray (unsigned long nSize = 0);
+ PtrArray (int nSize = 0);
~PtrArray ();
- void SetSize (unsigned long nSize);
- unsigned long GetSize () const
+ void SetSize (int nSize);
+ int GetSize () const
{ return m_nLength; }
- T* RemoveIndex (unsigned long nIndex);
+ T* RemoveIndex (int nIndex);
T* RemovePointer (T* pObj);
void Add (T* pObj);
- T* operator [](unsigned long nIndex) const
+ T* operator [](int nIndex) const
{ return m_pData[nIndex]; }
protected:
- void Expand (unsigned long nGrow);
+ void Expand (int nGrow);
T** m_pData;
- unsigned long m_nLength;
- unsigned long m_nAlloc;
+ int m_nLength;
+ int m_nAlloc;
};
#include "array.cpp"