From cac58b5ab572889667f6e936a14f53ac6d87273a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 16 Sep 2016 17:34:21 +0000 Subject: forgotten database function git-svn-id: http://svn.miranda-ng.org/main/trunk@17303 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbEditorPP/src/main.cpp | 2 +- plugins/FavContacts/src/favlist.h | 2 +- plugins/Import/src/import.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/DbEditorPP/src/main.cpp b/plugins/DbEditorPP/src/main.cpp index d997ab744e..045834f1ab 100644 --- a/plugins/DbEditorPP/src/main.cpp +++ b/plugins/DbEditorPP/src/main.cpp @@ -189,7 +189,7 @@ extern "C" __declspec(dllexport) int Load(void) hwnd2mainWindow = NULL; hRestore = NULL; - g_db = GetCurrentDatabase(); + g_db = db_get_current(); HookEvent(ME_DB_CONTACT_SETTINGCHANGED, DBSettingChanged); HookEvent(ME_OPT_INITIALISE, OptInit); diff --git a/plugins/FavContacts/src/favlist.h b/plugins/FavContacts/src/favlist.h index b111550237..b6ebc70f2e 100644 --- a/plugins/FavContacts/src/favlist.h +++ b/plugins/FavContacts/src/favlist.h @@ -94,7 +94,7 @@ private: public: TFavContacts() : LIST(5, TContactInfo::cmp) { - db = GetCurrentDatabase(); + db = db_get_current(); } ~TFavContacts() diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp index 62b4260e8a..6d6a8f1443 100644 --- a/plugins/Import/src/import.cpp +++ b/plugins/Import/src/import.cpp @@ -961,7 +961,7 @@ void MirandaImport(HWND hdlg) { hdlgProgress = hdlg; - if ((dstDb = GetCurrentDatabase()) == NULL) { + if ((dstDb = db_get_current()) == NULL) { AddMessage(LPGENW("Error retrieving current profile, exiting.")); return; } -- cgit v1.2.3