From f7001757a832e948645713a94739f66b07d5f2c1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 21 Mar 2018 18:06:27 +0300 Subject: DATABASELINK::Unload method replaced with the virtual destructor of MDatabaseCommon --- plugins/Import/src/dbrw/dbrw.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'plugins/Import/src/dbrw') diff --git a/plugins/Import/src/dbrw/dbrw.cpp b/plugins/Import/src/dbrw/dbrw.cpp index 728fafe9ff..b5ed672bdb 100644 --- a/plugins/Import/src/dbrw/dbrw.cpp +++ b/plugins/Import/src/dbrw/dbrw.cpp @@ -77,19 +77,13 @@ static int dbrw_grokHeader(const wchar_t *profile) return rc; } -static MIDatabase* dbrw_Load(const wchar_t *profile, BOOL) +static MDatabaseCommon* dbrw_Load(const wchar_t *profile, BOOL) { CDbxSQLite *db = new CDbxSQLite(); db->Open(profile); return db; } -static int dbrw_Unload(MIDatabase *db) -{ - delete (CDbxSQLite*)db; - return 0; -} - static DATABASELINK dblink = { sizeof(DATABASELINK), @@ -97,8 +91,7 @@ static DATABASELINK dblink = L"dbx SQLite driver", dbrw_makeDatabase, dbrw_grokHeader, - dbrw_Load, - dbrw_Unload + dbrw_Load }; void RegisterDbrw() -- cgit v1.2.3