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
@@ -122,7 +122,7 @@ bool MemoryCardDriver::DoOneUpdate( bool bMount, vector<UsbStorageDevice>& vStor
}
#include "arch/arch_default.h"
MemoryCardDriver *MakeMemoryCardDriver()
MemoryCardDriver *MemoryCardDriver::Create()
{
MemoryCardDriver *ret = NULL;
@@ -75,6 +75,8 @@ struct UsbStorageDevice
class MemoryCardDriver
{
public:
static MemoryCardDriver *Create();
MemoryCardDriver() {}
virtual ~MemoryCardDriver() {}