summaryrefslogtreecommitdiff
path: root/common/array.h
diff options
context:
space:
mode:
authorleo2006-01-03 01:34:03 +0000
committerleo2006-01-03 01:34:03 +0000
commitb463aef5bdc800972f61d9d6ee8087533f011dff (patch)
treee49ca45112cb05a69e83b22dd8f629cb8fadb055 /common/array.h
parent43be715ad595e58f3381439c88defb209aa06f89 (diff)
Fixed subpieces in the pieces bar.
git-svn-id: http://svn.leocad.org/trunk@451 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/array.h')
-rwxr-xr-xcommon/array.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/array.h b/common/array.h
index 64f82f9..581d660 100755
--- a/common/array.h
+++ b/common/array.h
@@ -8,7 +8,7 @@ public:
PtrArray(int nSize = 0);
~PtrArray();
- typedef int (*LC_PTRARRAY_COMPARE_FUNC)(T* a, T* b, void* data);
+ typedef int (*LC_PTRARRAY_COMPARE_FUNC)(const T* a, const T* b, void* data);
int GetSize() const
{ return m_nLength; }
@@ -20,6 +20,7 @@ public:
void AddSorted(T* pObj, LC_PTRARRAY_COMPARE_FUNC pFunc, void* pData);
void InsertAt(int nIndex, T* pObj);
int FindIndex(T* Obj) const;
+ void Sort(LC_PTRARRAY_COMPARE_FUNC SortFunc, void* SortData);
PtrArray<T>& operator=(const PtrArray<T>& Array);
T* operator [](int nIndex) const