From 371db973914f270432e914922b735e01279c5db8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 12 Feb 2014 14:12:44 +0000 Subject: another bunch of useless conversions died git-svn-id: http://svn.miranda-ng.org/main/trunk@8109 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/AimOscar/src/chat.cpp | 6 +++--- protocols/AimOscar/src/links.cpp | 2 +- protocols/AimOscar/src/server.cpp | 14 +++++++------- protocols/AimOscar/src/utility.cpp | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'protocols/AimOscar/src') diff --git a/protocols/AimOscar/src/chat.cpp b/protocols/AimOscar/src/chat.cpp index 29b1a202dd..d1b4bb900f 100644 --- a/protocols/AimOscar/src/chat.cpp +++ b/protocols/AimOscar/src/chat.cpp @@ -139,7 +139,7 @@ int CAimProto::OnGCEvent(WPARAM wParam,LPARAM lParam) char* sn = mir_t2a(gch->ptszUID); MCONTACT hContact = contact_from_sn(sn); mir_free(sn); - CallService(MS_MSG_SENDMESSAGE, (WPARAM)hContact, 0); + CallService(MS_MSG_SENDMESSAGE, hContact, 0); } break; @@ -166,11 +166,11 @@ int CAimProto::OnGCEvent(WPARAM wParam,LPARAM lParam) switch (gch->dwData) { case 10: - CallService(MS_USERINFO_SHOWDIALOG, (WPARAM)hContact, 0); + CallService(MS_USERINFO_SHOWDIALOG, hContact, 0); break; case 20: - CallService(MS_HISTORY_SHOWCONTACTHISTORY, (WPARAM)hContact, 0); + CallService(MS_HISTORY_SHOWCONTACTHISTORY, hContact, 0); break; case 110: diff --git a/protocols/AimOscar/src/links.cpp b/protocols/AimOscar/src/links.cpp index 538f9e3d6d..b1c954d413 100644 --- a/protocols/AimOscar/src/links.cpp +++ b/protocols/AimOscar/src/links.cpp @@ -139,7 +139,7 @@ static INT_PTR ServiceParseAimLink(WPARAM,LPARAM lParam) MCONTACT hContact = proto->contact_from_sn(sn, true, true); if (hContact) - CallService(MS_MSG_SENDMESSAGET, (WPARAM)hContact, (LPARAM)msg); + CallService(MS_MSG_SENDMESSAGET, hContact, (LPARAM)msg); mir_free(sn); return 0; diff --git a/protocols/AimOscar/src/server.cpp b/protocols/AimOscar/src/server.cpp index 4a966254a7..af9c749b44 100644 --- a/protocols/AimOscar/src/server.cpp +++ b/protocols/AimOscar/src/server.cpp @@ -999,7 +999,7 @@ void CAimProto::delete_ssi_list(SNAC &snac, int &offset) } } if (i == 1) - CallService(MS_DB_CONTACT_DELETE, (WPARAM)hContact, 0); + CallService(MS_DB_CONTACT_DELETE, hContact, 0); break; case 0x0001: //group record @@ -1594,11 +1594,11 @@ void CAimProto::snac_typing_notification(SNAC &snac)//family 0x004 { unsigned short type=snac.ushort(11+sn_length); if (type==0x0000)//typing finished - CallService(MS_PROTO_CONTACTISTYPING,(WPARAM)hContact,(WPARAM)PROTOTYPE_CONTACTTYPING_OFF); + CallService(MS_PROTO_CONTACTISTYPING,hContact,(WPARAM)PROTOTYPE_CONTACTTYPING_OFF); else if (type==0x0001)//typed - CallService(MS_PROTO_CONTACTISTYPING,(WPARAM)hContact,PROTOTYPE_CONTACTTYPING_INFINITE); + CallService(MS_PROTO_CONTACTISTYPING,hContact,PROTOTYPE_CONTACTTYPING_INFINITE); else if (type==0x0002)//typing - CallService(MS_PROTO_CONTACTISTYPING,(WPARAM)hContact,(LPARAM)60); + CallService(MS_PROTO_CONTACTISTYPING,hContact,(LPARAM)60); } mir_free(sn); } @@ -2313,11 +2313,11 @@ void CAimProto::snac_admin_account_confirm(SNAC &snac)//family 0x0007 unsigned short* type=(unsigned short*)&buf[SNAC_SIZE*2+1+sn_length]; *type=htons(*type); if (*type==0x0000)//typing finished - CallService(MS_PROTO_CONTACTISTYPING,(WPARAM)hContact,(WPARAM)PROTOTYPE_CONTACTTYPING_OFF); + CallService(MS_PROTO_CONTACTISTYPING,hContact,(WPARAM)PROTOTYPE_CONTACTTYPING_OFF); else if (*type==0x0001)//typed - CallService(MS_PROTO_CONTACTISTYPING,(WPARAM)hContact,PROTOTYPE_CONTACTTYPING_INFINITE); + CallService(MS_PROTO_CONTACTISTYPING,hContact,PROTOTYPE_CONTACTTYPING_INFINITE); else if (*type==0x0002)//typing - CallService(MS_PROTO_CONTACTISTYPING,(WPARAM)hContact,(LPARAM)60); + CallService(MS_PROTO_CONTACTISTYPING,hContact,(LPARAM)60); } } }*/ diff --git a/protocols/AimOscar/src/utility.cpp b/protocols/AimOscar/src/utility.cpp index 119234a93c..864e4edeba 100644 --- a/protocols/AimOscar/src/utility.cpp +++ b/protocols/AimOscar/src/utility.cpp @@ -205,7 +205,7 @@ MCONTACT CAimProto::contact_from_sn(const char* sn, bool addIfNeeded, bool tempo db_set_b(hContact, "CList", "NotOnList", 1); return hContact; } - CallService(MS_DB_CONTACT_DELETE, (WPARAM)hContact, 0); + CallService(MS_DB_CONTACT_DELETE, hContact, 0); } } -- cgit v1.2.3