Make* -> Driver::Create. Having these floating in arch.h isn't

useful; if you create the class, you need the class definition to
free it, and anyone creating a class is probably going to use it,
too.
This commit is contained in:
Glenn Maynard
2006-12-17 07:41:21 +00:00
parent 50ca6633cb
commit 17c32b90c2
14 changed files with 19 additions and 14 deletions
+1 -2
View File
@@ -10,7 +10,6 @@
#include "MessageManager.h"
#include "Foreach.h"
#include "RageUtil_WorkerThread.h"
#include "arch/arch.h"
#include "arch/MemoryCard/MemoryCardDriver_Null.h"
#include "LuaManager.h"
@@ -141,7 +140,7 @@ ThreadedMemoryCardWorker::ThreadedMemoryCardWorker():
UsbStorageDevicesMutex("UsbStorageDevicesMutex")
{
if( g_bMemoryCards )
m_pDriver = MakeMemoryCardDriver();
m_pDriver = MemoryCardDriver::Create();
else
m_pDriver = new MemoryCardDriver_Null;