diff options
author | George Hazan <george.hazan@gmail.com> | 2012-11-26 18:24:10 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-11-26 18:24:10 +0000 |
commit | ffeae3b58ae49397f62cb733c77f565ac4070223 (patch) | |
tree | 2c037284535c00a08069adcb1a1ef16e44889d4a /plugins/CyrTranslit/src | |
parent | 944753ba4f0e2b924215fab81e72abb933942df3 (diff) |
various code cleaning considering protocols' declarations
git-svn-id: http://svn.miranda-ng.org/main/trunk@2509 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CyrTranslit/src')
-rw-r--r-- | plugins/CyrTranslit/src/TransliterationProtocol.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/CyrTranslit/src/TransliterationProtocol.cpp b/plugins/CyrTranslit/src/TransliterationProtocol.cpp index 4fd3fb1b29..e261458934 100644 --- a/plugins/CyrTranslit/src/TransliterationProtocol.cpp +++ b/plugins/CyrTranslit/src/TransliterationProtocol.cpp @@ -31,11 +31,10 @@ char *TransliterationProtocol::MODULE_NAME = "ProtoCyrTranslitByIKR"; void TransliterationProtocol::initialize()
{
- PROTOCOLDESCRIPTOR desc;
- desc.cbSize = sizeof(desc);
- desc.szName = MODULE_NAME;
- desc.type = PROTOTYPE_TRANSLATION;
- CallService(MS_PROTO_REGISTERMODULE, 0, reinterpret_cast<LPARAM>(&desc));
+ PROTOCOLDESCRIPTOR pd = { sizeof(pd) };
+ pd.szName = MODULE_NAME;
+ pd.type = PROTOTYPE_TRANSLATION;
+ CallService(MS_PROTO_REGISTERMODULE, 0, reinterpret_cast<LPARAM>(&pd));
CreateProtoServiceFunction(MODULE_NAME, PSS_MESSAGE, sendMessageA);
CreateProtoServiceFunction(MODULE_NAME, PSS_MESSAGE"W", sendMessageW);
|