summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-09-16 17:34:21 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-09-16 17:34:21 +0000
commitcac58b5ab572889667f6e936a14f53ac6d87273a (patch)
tree4007fc8e9f76fb9f0b8b3013c91943f458ded092 /plugins
parentc7c0e011ddcfed4f9c3b49637bfeb8fa0d3d5a9d (diff)
forgotten database function
git-svn-id: http://svn.miranda-ng.org/main/trunk@17303 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/DbEditorPP/src/main.cpp2
-rw-r--r--plugins/FavContacts/src/favlist.h2
-rw-r--r--plugins/Import/src/import.cpp2
3 files changed, 3 insertions, 3 deletions
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<TContactInfo>(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;
}