From c1075c9ea02e77bcb55fa627623b1ac598abda44 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 23 Jul 2012 20:32:10 +0000 Subject: slightly changed class hierarchy git-svn-id: http://svn.miranda-ng.org/main/trunk@1141 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x_mmap/src/init.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/Db3x_mmap/src/init.cpp') diff --git a/plugins/Db3x_mmap/src/init.cpp b/plugins/Db3x_mmap/src/init.cpp index b38fab0ce2..032b43b5d4 100644 --- a/plugins/Db3x_mmap/src/init.cpp +++ b/plugins/Db3x_mmap/src/init.cpp @@ -41,14 +41,14 @@ static PLUGININFOEX pluginInfo = HINSTANCE g_hInst = NULL; -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, int *error) { - CDdxMmap *tmp = new CDdxMmap(profile); + CDb3Mmap *tmp = new CDb3Mmap(profile); if (tmp->Create() == ERROR_SUCCESS) { tmp->CreateDbHeaders(); delete tmp; @@ -62,7 +62,7 @@ static int makeDatabase(const TCHAR *profile, int *error) // returns 0 if the given profile has a valid header static int grokHeader(const TCHAR *profile, int *error) { - CDdxMmap *tmp = new CDdxMmap(profile); + CDb3Mmap *tmp = new CDb3Mmap(profile); if (tmp->Load(true) != ERROR_SUCCESS) { delete tmp; if (error != NULL) *error = EGROKPRF_CANTREAD; @@ -104,7 +104,7 @@ static MIDatabase* LoadDatabase(const TCHAR *profile) // set the memory, lists & UTF8 manager mir_getLP( &pluginInfo ); - CDdxMmap* db = new CDdxMmap(profile); + CDb3Mmap* db = new CDb3Mmap(profile); if (db->Load(false) != ERROR_SUCCESS) { delete db; return NULL; @@ -116,8 +116,8 @@ static MIDatabase* LoadDatabase(const TCHAR *profile) static int UnloadDatabase(MIDatabase* db) { - g_Dbs.remove((CDdxMmap*)db); - delete (CDdxMmap*)db; + g_Dbs.remove((CDb3Mmap*)db); + delete (CDb3Mmap*)db; return 0; } -- cgit v1.2.3