From 83310365c69bd40365ee0ae0e16c99c28e24cd0b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Jun 2015 14:24:12 +0000 Subject: - all static protocol services replaced with functions; - m_protomod.h removed as useless git-svn-id: http://svn.miranda-ng.org/main/trunk@14260 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryPlusPlus/historypp.dpr | 2 +- plugins/HistoryPlusPlus/hpp_contacts.pas | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/HistoryPlusPlus') diff --git a/plugins/HistoryPlusPlus/historypp.dpr b/plugins/HistoryPlusPlus/historypp.dpr index ca12e3596a..ccaaba045d 100644 --- a/plugins/HistoryPlusPlus/historypp.dpr +++ b/plugins/HistoryPlusPlus/historypp.dpr @@ -376,7 +376,7 @@ begin exit; end; - szProto := pAnsiChar(CallService(MS_PROTO_GETCONTACTBASEPROTO, wParam, 0)); + szProto := Proto_GetProtoName(wParam); if (StrComp(cws.szModule, 'CList') <> 0) and ((szProto = nil) or (StrComp(cws.szModule, szProto) <> 0)) then exit; diff --git a/plugins/HistoryPlusPlus/hpp_contacts.pas b/plugins/HistoryPlusPlus/hpp_contacts.pas index e2a68e7ac3..fa8b9f6a4e 100644 --- a/plugins/HistoryPlusPlus/hpp_contacts.pas +++ b/plugins/HistoryPlusPlus/hpp_contacts.pas @@ -68,16 +68,16 @@ uses hpp_database, hpp_options; function GetContactProto(hContact: TMCONTACT): AnsiString; begin - Result := PAnsiChar(CallService(MS_PROTO_GETCONTACTBASEPROTO, hContact, 0)); + Result := Proto_GetProtoName(hContact); end; function GetContactProto(hContact: TMCONTACT; var SubContact: TMCONTACT; var SubProtocol: AnsiString): AnsiString; begin - Result := PAnsiChar(CallService(MS_PROTO_GETCONTACTBASEPROTO, hContact, 0)); + Result := Proto_GetProtoName(hContact); if (Result = META_PROTO) then begin SubContact := CallService(MS_MC_GETMOSTONLINECONTACT, hContact, 0); - SubProtocol := PAnsiChar(CallService(MS_PROTO_GETCONTACTBASEPROTO, SubContact, 0)); + SubProtocol := Proto_GetProtoName(SubContact); end else begin -- cgit v1.2.3