diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-20 14:25:52 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-20 14:25:52 +0000 |
commit | a346491026d5df1ffe0d41e4881613a47ca6ca47 (patch) | |
tree | ffd505fe0680db47ea51549ec3565e23f56e34a1 /plugins/CyrTranslit | |
parent | 2ffa7047ec0475856481b9e813eecb99b268d2d0 (diff) |
end of the city legend that PSS_MESSAGEW ever existed
git-svn-id: http://svn.miranda-ng.org/main/trunk@4482 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CyrTranslit')
-rw-r--r-- | plugins/CyrTranslit/src/TransliterationProtocol.cpp | 22 | ||||
-rw-r--r-- | plugins/CyrTranslit/src/TransliterationProtocol.h | 3 |
2 files changed, 3 insertions, 22 deletions
diff --git a/plugins/CyrTranslit/src/TransliterationProtocol.cpp b/plugins/CyrTranslit/src/TransliterationProtocol.cpp index ecb650571f..dc75e17dbf 100644 --- a/plugins/CyrTranslit/src/TransliterationProtocol.cpp +++ b/plugins/CyrTranslit/src/TransliterationProtocol.cpp @@ -33,8 +33,7 @@ void TransliterationProtocol::initialize() 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);
+ CreateProtoServiceFunction(MODULE_NAME, PSS_MESSAGE, sendMessage);
}
//------------------------------------------------------------------------------
@@ -90,26 +89,9 @@ void TransliterationProtocol::TranslateMessageA(WPARAM wParam, LPARAM lParam) strcpy(reinterpret_cast<char*>(ccs->lParam), txt.c_str());
}
-INT_PTR TransliterationProtocol::sendMessageW(WPARAM wParam, LPARAM lParam)
-{
- CCSDATA *ccs = reinterpret_cast<CCSDATA*>(lParam);
- if ( !MirandaContact::bIsActive(ccs->hContact))
- return CallService(MS_PROTO_CHAINSEND, wParam, lParam);
-
- LPARAM oldlParam = ccs->lParam;
-
- TranslateMessageW(wParam, lParam);
-
- int ret = CallService(MS_PROTO_CHAINSEND /* "W" */, wParam, lParam);
-
- mir_free(reinterpret_cast<void*>(ccs->lParam));
- ccs->lParam = oldlParam;
-
- return ret;
-}
//------------------------------------------------------------------------------
-INT_PTR TransliterationProtocol::sendMessageA(WPARAM wParam, LPARAM lParam)
+INT_PTR TransliterationProtocol::sendMessage(WPARAM wParam, LPARAM lParam)
{
CCSDATA *ccs = reinterpret_cast<CCSDATA*>(lParam);
if ( !MirandaContact::bIsActive(ccs->hContact))
diff --git a/plugins/CyrTranslit/src/TransliterationProtocol.h b/plugins/CyrTranslit/src/TransliterationProtocol.h index 30c890d971..2f746a64b8 100644 --- a/plugins/CyrTranslit/src/TransliterationProtocol.h +++ b/plugins/CyrTranslit/src/TransliterationProtocol.h @@ -44,8 +44,7 @@ public: * @param lParam (LPARAM)(const char*)szMessage
* @return a hProcess corresponding to the one in the ack event.
*/
- static INT_PTR sendMessageA(WPARAM wParam, LPARAM lParam);
- static INT_PTR sendMessageW(WPARAM wParam, LPARAM lParam);
+ static INT_PTR sendMessage(WPARAM wParam, LPARAM lParam);
static void TranslateMessageA(WPARAM wParam, LPARAM lParam);
static void TranslateMessageW(WPARAM wParam, LPARAM lParam);
|