summaryrefslogtreecommitdiff
path: root/protocols/MRA
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-19 14:12:58 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-19 14:13:06 +0300
commite254312f9a660c83081ce2062ab14ba3c3614089 (patch)
tree324dff386c4b394ed4dc0f9b912ce3332bd94e84 /protocols/MRA
parent54ad7c456325b4c7fd639ef2d7cca7d5aef81c05 (diff)
useless structure GCDEST finally removed
Diffstat (limited to 'protocols/MRA')
-rw-r--r--protocols/MRA/src/MraChat.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/MRA/src/MraChat.cpp b/protocols/MRA/src/MraChat.cpp
index de0a69c52b..69e663239f 100644
--- a/protocols/MRA/src/MraChat.cpp
+++ b/protocols/MRA/src/MraChat.cpp
@@ -64,13 +64,12 @@ INT_PTR CMraProto::MraChatSessionEventSendByHandle(MCONTACT hContactChatSession,
CMStringW wszID, wszUID, wszNick;
- GCDEST gcd = { m_szModuleName, 0, iType };
+ GCEVENT gce = { m_szModuleName, 0, iType };
if (hContactChatSession) {
mraGetStringW(hContactChatSession, "e-mail", wszID);
- gcd.ptszID = (LPWSTR)wszID.c_str();
+ gce.ptszID = wszID.c_str();
}
- GCEVENT gce = { &gcd };
gce.dwFlags = dwFlags;
gce.ptszUID = wszUID;
gce.ptszStatus = lpwszStatus;
@@ -167,11 +166,11 @@ int CMraProto::MraChatGcEventHook(WPARAM, LPARAM lParam)
if (bChatExists) {
GCHOOK* gch = (GCHOOK*)lParam;
- if (!_stricmp(gch->pDest->pszModule, m_szModuleName)) {
- switch (gch->pDest->iType) {
+ if (!_stricmp(gch->pszModule, m_szModuleName)) {
+ switch (gch->iType) {
case GC_USER_MESSAGE:
if (gch->ptszText && mir_wstrlen(gch->ptszText)) {
- CMStringA szEmail = gch->pDest->ptszID;
+ CMStringA szEmail = gch->ptszID;
MCONTACT hContact = MraHContactFromEmail(szEmail, FALSE, TRUE, NULL);
BOOL bSlowSend = getByte("SlowSend", MRA_DEFAULT_SLOW_SEND);