From a105d0705b4831de7212737072c8cb80f90530ff Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 10 Mar 2014 07:14:27 +0000 Subject: unneeded helpers removed git-svn-id: http://svn.miranda-ng.org/main/trunk@8541 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/New_GPG/src/icons.cpp | 8 ++++---- plugins/New_GPG/src/messages.cpp | 18 +++++++++--------- plugins/New_GPG/src/metacontacts.cpp | 14 -------------- plugins/New_GPG/src/metacontacts.h | 1 - plugins/New_GPG/src/options.cpp | 2 +- plugins/New_GPG/src/srmm.cpp | 2 +- 6 files changed, 15 insertions(+), 30 deletions(-) (limited to 'plugins') diff --git a/plugins/New_GPG/src/icons.cpp b/plugins/New_GPG/src/icons.cpp index 2770d28b64..dffaad03bd 100644 --- a/plugins/New_GPG/src/icons.cpp +++ b/plugins/New_GPG/src/icons.cpp @@ -50,9 +50,9 @@ void setClistIcon(MCONTACT hContact) extern HANDLE g_hCLIcon; MCONTACT hMC = hContact; if(db_mc_isSub(hContact)) - hMC = metaGetContact(hContact); + hMC = db_mc_getMeta(hContact); else if(metaIsProtoMetaContacts(hContact)) - hMC = metaGetContact(hContact); + hMC = db_mc_getMeta(hContact); const char *szIconId = (enabled) ? "secured" : NULL; ExtraIcon_SetIcon(g_hCLIcon, hContact, szIconId); if(hMC) @@ -65,9 +65,9 @@ void setSrmmIcon(MCONTACT h) bool enabled = isContactSecured(hContact); MCONTACT hMC = NULL; if(db_mc_isSub(hContact)) - hMC = metaGetContact(hContact); + hMC = db_mc_getMeta(hContact); else if(metaIsProtoMetaContacts(hContact)) - hMC = metaGetContact(hContact); + hMC = db_mc_getMeta(hContact); StatusIconData sid = { sizeof(sid) }; sid.szModule = szGPGModuleName; diff --git a/plugins/New_GPG/src/messages.cpp b/plugins/New_GPG/src/messages.cpp index cada448160..dd05955bf6 100755 --- a/plugins/New_GPG/src/messages.cpp +++ b/plugins/New_GPG/src/messages.cpp @@ -323,7 +323,7 @@ void RecvMsgSvc_func(MCONTACT hContact, std::wstring str, char *msg, DWORD flags { char *msg = mir_strdup(toUTF8(str).c_str()); HistoryLog(hContact, db_event(msg, timestamp, 0, dbflags|DBEF_READ)); - HistoryLog(metaGetContact(hContact), db_event(msg, timestamp, 0, dbflags)); + HistoryLog(db_mc_getMeta(hContact), db_event(msg, timestamp, 0, dbflags)); mir_free(msg); return; } @@ -341,7 +341,7 @@ void RecvMsgSvc_func(MCONTACT hContact, std::wstring str, char *msg, DWORD flags if(db_mc_isSub(hContact)) { HistoryLog(hContact, db_event(msg, timestamp, 0, dbflags|DBEF_READ)); - HistoryLog(metaGetContact(hContact), db_event(msg, timestamp, 0, dbflags)); + HistoryLog(db_mc_getMeta(hContact), db_event(msg, timestamp, 0, dbflags)); return; } HistoryLog(hContact, db_event(msg, timestamp, 0, dbflags|DBEF_READ)); @@ -489,9 +489,9 @@ INT_PTR RecvMsgSvc(WPARAM w, LPARAM l) setClistIcon(ccs->hContact); if(db_mc_isSub(ccs->hContact)) { - setSrmmIcon(metaGetContact(ccs->hContact)); - setClistIcon(metaGetContact(ccs->hContact)); - HistoryLog(metaGetContact(ccs->hContact), "PGP Encryption turned on by key autoexchange feature"); + setSrmmIcon(db_mc_getMeta(ccs->hContact)); + setClistIcon(db_mc_getMeta(ccs->hContact)); + HistoryLog(db_mc_getMeta(ccs->hContact), "PGP Encryption turned on by key autoexchange feature"); } HistoryLog(ccs->hContact, "PGP Encryption turned on by key autoexchange feature"); } @@ -769,13 +769,13 @@ void SendMsgSvc_func(MCONTACT hContact, char *msg, DWORD flags) } /*if(db_mc_isSub(hContact)) { - hcontact_data[metaGetContact(hContact)].msgs_to_pass.push_back(str_event); + hcontact_data[db_mc_getMeta(hContact)].msgs_to_pass.push_back(str_event); if(bDebugLog) { - debuglog<szModule, szGPGModuleName)) return 0; // not our event -- cgit v1.2.3