Order symbols in LegoWorld (#1321)

* Partially order `LegoWorld` symbols

* Further order `LegoWorld`
This commit is contained in:
Christian Semmler
2025-01-09 17:31:45 -07:00
committed by GitHub
parent 58d3bd39e1
commit ee2bcb4d53
4 changed files with 31 additions and 45 deletions

View File

@@ -46,8 +46,7 @@ template <class T>
class MxList : protected MxCollection<T> {
public:
MxList() { m_first = m_last = NULL; }
~MxList() override;
~MxList() override { DeleteAll(); }
void Append(T p_obj) { InsertEntry(p_obj, this->m_last, NULL); }
void Prepend(T p_obj) { InsertEntry(p_obj, NULL, this->m_first); }
@@ -127,12 +126,6 @@ public:
MxPtrListCursor(MxPtrList<T>* p_list) : MxListCursor<T*>(p_list) {}
};
template <class T>
MxList<T>::~MxList()
{
DeleteAll();
}
// Delete entries and values
template <class T>
inline void MxList<T>::DeleteAll()