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/CyrTranslit/src/TransliterationProtocol.cpp | 6 +++--- plugins/CyrTranslit/src/stdafx.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/CyrTranslit/src') diff --git a/plugins/CyrTranslit/src/TransliterationProtocol.cpp b/plugins/CyrTranslit/src/TransliterationProtocol.cpp index 27940f86ac..52eb90b6ef 100644 --- a/plugins/CyrTranslit/src/TransliterationProtocol.cpp +++ b/plugins/CyrTranslit/src/TransliterationProtocol.cpp @@ -32,7 +32,7 @@ void TransliterationProtocol::initialize() pd.cbSize = sizeof(pd); pd.szName = MODULE_NAME; pd.type = PROTOTYPE_TRANSLATION; - CallService(MS_PROTO_REGISTERMODULE, 0, reinterpret_cast(&pd)); + Proto_RegisterModule(&pd); CreateProtoServiceFunction(MODULE_NAME, PSS_MESSAGE, sendMessage); } @@ -62,14 +62,14 @@ INT_PTR TransliterationProtocol::sendMessage(WPARAM wParam, LPARAM lParam) { CCSDATA *ccs = reinterpret_cast(lParam); if ( !MirandaContact::bIsActive(ccs->hContact)) - return CallService(MS_PROTO_CHAINSEND, wParam, lParam); + return Proto_ChainSend(wParam, ccs); LPARAM oldlParam = ccs->lParam; bool msgProcessed = true; TranslateMessageUTF(wParam, lParam); - int ret = CallService(MS_PROTO_CHAINSEND, wParam, lParam); + int ret = Proto_ChainSend(wParam, ccs); if (msgProcessed) { mir_free(reinterpret_cast(ccs->lParam)); diff --git a/plugins/CyrTranslit/src/stdafx.h b/plugins/CyrTranslit/src/stdafx.h index 40f1692b52..ff94bd9471 100644 --- a/plugins/CyrTranslit/src/stdafx.h +++ b/plugins/CyrTranslit/src/stdafx.h @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include -- cgit v1.2.3