From eb4c733a253ba63e0d59e5b7a5d78dd3ad787f37 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 11 Jan 2013 14:34:05 +0000 Subject: global variable removed from db_mmap_sa git-svn-id: http://svn.miranda-ng.org/main/trunk@3055 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_mmap_SA/src/init.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/Dbx_mmap_SA/src/init.cpp') diff --git a/plugins/Dbx_mmap_SA/src/init.cpp b/plugins/Dbx_mmap_SA/src/init.cpp index 77bf5dc953..688cd36716 100644 --- a/plugins/Dbx_mmap_SA/src/init.cpp +++ b/plugins/Dbx_mmap_SA/src/init.cpp @@ -44,14 +44,14 @@ PLUGININFOEX pluginInfo = { { 0x28ff9b91, 0x3e4d, 0x4f1c, { 0xb4, 0x7c, 0xc6, 0x41, 0xb0, 0x37, 0xff, 0x40 } } }; -LIST g_Dbs(1, (LIST::FTSortFunc)HandleKeySort); +LIST g_Dbs(1, (LIST::FTSortFunc)HandleKeySort); ///////////////////////////////////////////////////////////////////////////////////////// // returns 0 if the profile is created, EMKPRF* static int makeDatabase(const TCHAR *profile) { - std::auto_ptr db( new CDdxMmapSA(profile)); + std::auto_ptr db( new CDbxMmapSA(profile)); if (db->Create() == ERROR_SUCCESS) { db->CreateDbHeaders(dbSignatureNonSecured); return 0; @@ -63,7 +63,7 @@ static int makeDatabase(const TCHAR *profile) // returns 0 if the given profile has a valid header static int grokHeader(const TCHAR *profile) { - std::auto_ptr db( new CDdxMmapSA(profile)); + std::auto_ptr db( new CDbxMmapSA(profile)); if (db->Load(true) != ERROR_SUCCESS) return EGROKPRF_CANTREAD; @@ -76,7 +76,7 @@ static MIDatabase* LoadDatabase(const TCHAR *profile) // set the memory, lists & UTF8 manager mir_getLP( &pluginInfo ); - std::auto_ptr db( new CDdxMmapSA(profile)); + std::auto_ptr db( new CDbxMmapSA(profile)); if (db->Load(false) != ERROR_SUCCESS) return NULL; @@ -86,14 +86,14 @@ static MIDatabase* LoadDatabase(const TCHAR *profile) static int UnloadDatabase(MIDatabase* db) { - g_Dbs.remove((CDdxMmapSA*)db); - delete (CDdxMmapSA*)db; + g_Dbs.remove((CDbxMmapSA*)db); + delete (CDbxMmapSA*)db; return 0; } MIDatabaseChecker* CheckDb(const TCHAR* profile, int *error) { - std::auto_ptr db( new CDdxMmapSA(profile)); + std::auto_ptr db( new CDbxMmapSA(profile)); if (db->Load(true) != ERROR_SUCCESS) { *error = EGROKPRF_CANTREAD; return NULL; -- cgit v1.2.3