mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 08:54:15 +00:00
Add MxStreamController::~MxStreamController (#355)
This commit is contained in:
committed by
GitHub
parent
24a3a8f3fd
commit
bbe5d6f810
@@ -7,24 +7,23 @@
|
||||
#include "mxstl/stlcompat.h"
|
||||
|
||||
template <class T>
|
||||
class MxStreamList : public list<T> {};
|
||||
class MxStreamList : public list<T> {
|
||||
public:
|
||||
MxBool PopFront(T& p_obj)
|
||||
{
|
||||
if (empty())
|
||||
return FALSE;
|
||||
|
||||
p_obj = front();
|
||||
pop_front();
|
||||
return TRUE;
|
||||
}
|
||||
};
|
||||
|
||||
// SIZE 0xc
|
||||
class MxStreamListMxDSAction : public MxStreamList<MxDSAction*> {
|
||||
public:
|
||||
MxDSAction* Find(MxDSAction* p_action, MxBool p_delete);
|
||||
|
||||
// Could move this to MxStreamList
|
||||
MxBool PopFront(MxDSAction*& p_obj)
|
||||
{
|
||||
if (!empty()) {
|
||||
p_obj = front();
|
||||
pop_front();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
};
|
||||
|
||||
// SIZE 0xc
|
||||
|
||||
Reference in New Issue
Block a user