From 7bdb598e26e7e98788933af43090d34027166969 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 14 Sep 2016 18:01:49 +0000 Subject: second major wipeout of database services & structures: - DBCONTACTENUMSETTINGS removed; - all helpers moved to mir_core.dll git-svn-id: http://svn.miranda-ng.org/main/trunk@17296 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/ex_import/svc_ExImXML.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/UserInfoEx/src/ex_import/svc_ExImXML.cpp') diff --git a/plugins/UserInfoEx/src/ex_import/svc_ExImXML.cpp b/plugins/UserInfoEx/src/ex_import/svc_ExImXML.cpp index 2ac2aaa37d..aee6a83b5f 100644 --- a/plugins/UserInfoEx/src/ex_import/svc_ExImXML.cpp +++ b/plugins/UserInfoEx/src/ex_import/svc_ExImXML.cpp @@ -366,11 +366,11 @@ int CFileXml::Import(MCONTACT hContact, LPCSTR pszFileName) int ret; // disable database safty mode to speed up the operation - CallService(MS_DB_SETSAFETYMODE, 0, 0); + db_set_safety_mode(0); // import owner contact ret = ImportOwner(xmlCard->FirstChildElement(XKEY_OWNER)); // as soon as possible enable safty mode again! - CallService(MS_DB_SETSAFETYMODE, 1, 0); + db_set_safety_mode(1); if (!ret) { MsgBox(NULL, MB_ICONINFORMATION, @@ -395,11 +395,11 @@ int CFileXml::Import(MCONTACT hContact, LPCSTR pszFileName) if (_numContactsTodo > 0) { _progress.SetContactCount(_numContactsTodo); // disable database safty mode to speed up the operation - CallService(MS_DB_SETSAFETYMODE, 0, 0); + db_set_safety_mode(0); // import the contacts ImportContacts(xmlCard); // as soon as possible enable safty mode again! - CallService(MS_DB_SETSAFETYMODE, 1, 0); + db_set_safety_mode(1); } // finally hide the progress dialog _progress.Hide(); -- cgit v1.2.3