mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-26 01:44:19 +00:00
Refactor MxPtrList to use p_ownership (#344)
* Refactor MxPtrList to use p_ownership * Remove class names
This commit is contained in:
committed by
GitHub
parent
db60467ba3
commit
afadca953b
@@ -9,12 +9,14 @@ public:
|
||||
MxCollection()
|
||||
{
|
||||
m_count = 0;
|
||||
m_customDestructor = Destroy;
|
||||
SetDestroy(Destroy);
|
||||
}
|
||||
|
||||
virtual ~MxCollection() {}
|
||||
|
||||
static void Destroy(T){};
|
||||
|
||||
void SetDestroy(void (*p_customDestructor)(T)) { this->m_customDestructor = p_customDestructor; }
|
||||
|
||||
virtual ~MxCollection() {}
|
||||
virtual MxS8 Compare(T, T) { return 0; }
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user