mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-16 06:29:33 +00:00
CardManager: small refactor
This commit is contained in:
parent
0d741d0b9f
commit
65b8f5fdbf
|
@ -120,12 +120,6 @@ void CardManager::RemoveInternal(UINT slot)
|
||||||
m_slot[slot] = NULL;
|
m_slot[slot] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CardManager::RemoveAuxInternal()
|
|
||||||
{
|
|
||||||
delete m_aux;
|
|
||||||
m_aux = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CardManager::Remove(UINT slot)
|
void CardManager::Remove(UINT slot)
|
||||||
{
|
{
|
||||||
RemoveInternal(slot);
|
RemoveInternal(slot);
|
||||||
|
@ -159,6 +153,12 @@ void CardManager::InsertAux(SS_CARDTYPE type)
|
||||||
_ASSERT(m_aux != NULL);
|
_ASSERT(m_aux != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CardManager::RemoveAuxInternal()
|
||||||
|
{
|
||||||
|
delete m_aux;
|
||||||
|
m_aux = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
void CardManager::RemoveAux(void)
|
void CardManager::RemoveAux(void)
|
||||||
{
|
{
|
||||||
RemoveAuxInternal();
|
RemoveAuxInternal();
|
||||||
|
|
|
@ -53,7 +53,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void RemoveInternal(UINT slot);
|
void RemoveInternal(UINT slot);
|
||||||
void RemoveAuxInternal();
|
void RemoveAuxInternal(void);
|
||||||
|
|
||||||
Card* m_slot[NUM_SLOTS];
|
Card* m_slot[NUM_SLOTS];
|
||||||
Card* m_aux;
|
Card* m_aux;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user