From d1f56d93f934150f4b579c2e90564e2bf035f113 Mon Sep 17 00:00:00 2001 From: David Corrales Date: Sat, 12 May 2007 20:00:52 +0000 Subject: Use common/singleton.h in the concrete fs factories. svn-id: r26814 --- backends/fs/ds/ds-fs-factory.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'backends/fs/ds/ds-fs-factory.cpp') diff --git a/backends/fs/ds/ds-fs-factory.cpp b/backends/fs/ds/ds-fs-factory.cpp index 1855fbc40d..7e64b37411 100644 --- a/backends/fs/ds/ds-fs-factory.cpp +++ b/backends/fs/ds/ds-fs-factory.cpp @@ -2,14 +2,7 @@ #include "backends/fs/ds/ds-fs.cpp" #include "dsmain.h" //for the isGBAMPAvailable() function -DSFilesystemFactory *DSFilesystemFactory::_instance = 0; - -DSFilesystemFactory *DSFilesystemFactory::instance(){ - if(_instance == 0){ - _instance = new DSFilesystemFactory(); - } - return _instance; -} +DECLARE_SINGLETON(DSFilesystemFactory); AbstractFilesystemNode *DSFilesystemFactory::makeRootFileNode() const { if (DS::isGBAMPAvailable()) { -- cgit v1.2.3