From 65b8f5fdbfca9e2df7c53ef6f03caa298d424e9b Mon Sep 17 00:00:00 2001 From: tomcw Date: Wed, 9 Dec 2020 20:19:49 +0000 Subject: [PATCH] CardManager: small refactor --- source/CardManager.cpp | 12 ++++++------ source/CardManager.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/CardManager.cpp b/source/CardManager.cpp index 2cb25465..a3181d7f 100644 --- a/source/CardManager.cpp +++ b/source/CardManager.cpp @@ -120,12 +120,6 @@ void CardManager::RemoveInternal(UINT slot) m_slot[slot] = NULL; } -void CardManager::RemoveAuxInternal() -{ - delete m_aux; - m_aux = NULL; -} - void CardManager::Remove(UINT slot) { RemoveInternal(slot); @@ -159,6 +153,12 @@ void CardManager::InsertAux(SS_CARDTYPE type) _ASSERT(m_aux != NULL); } +void CardManager::RemoveAuxInternal() +{ + delete m_aux; + m_aux = NULL; +} + void CardManager::RemoveAux(void) { RemoveAuxInternal(); diff --git a/source/CardManager.h b/source/CardManager.h index 367cafae..e152f645 100644 --- a/source/CardManager.h +++ b/source/CardManager.h @@ -53,7 +53,7 @@ public: private: void RemoveInternal(UINT slot); - void RemoveAuxInternal(); + void RemoveAuxInternal(void); Card* m_slot[NUM_SLOTS]; Card* m_aux;