From 0173277372e2962b8f5703a0ebad7892dda15e6c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 9 Mar 2014 21:50:49 +0000 Subject: end of the old MC API git-svn-id: http://svn.miranda-ng.org/main/trunk@8534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/New_GPG/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/New_GPG/src/main.cpp') diff --git a/plugins/New_GPG/src/main.cpp b/plugins/New_GPG/src/main.cpp index a7eb35ca46..5b7f0edd6a 100755 --- a/plugins/New_GPG/src/main.cpp +++ b/plugins/New_GPG/src/main.cpp @@ -2284,10 +2284,10 @@ void ImportKey() { if(for_all_sub) { - int count = metaGetContactsNum(hContact); + int count = db_mc_getSubCount(hContact); for(int i = 0; i < count; i++) { - MCONTACT hcnt = metaGetSubcontact(hContact, i); + MCONTACT hcnt = db_mc_getSub(hContact, i); if(hcnt) db_set_ts(hcnt, szGPGModuleName, "GPGPubKey", new_key.c_str()); } @@ -2338,10 +2338,10 @@ void ImportKey() { if(for_all_sub) { - int count = metaGetContactsNum(hContact); + int count = db_mc_getSubCount(hContact); for(int i = 0; i < count; i++) { - MCONTACT hcnt = metaGetSubcontact(hContact, i); + MCONTACT hcnt = db_mc_getSub(hContact, i); if(hcnt) { char *tmp = NULL; -- cgit v1.2.3