From 1925d3521846f4e6683d3d537cc41de9c9bd7250 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 11 Feb 2014 19:01:03 +0000 Subject: "we don't need these variables" (c) Pink Floyd git-svn-id: http://svn.miranda-ng.org/main/trunk@8101 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/src/core.cpp | 6 ++---- protocols/Gadu-Gadu/src/gg.cpp | 6 ++---- protocols/Gadu-Gadu/src/image.cpp | 3 +-- protocols/Gadu-Gadu/src/services.cpp | 3 +-- 4 files changed, 6 insertions(+), 12 deletions(-) (limited to 'protocols/Gadu-Gadu') diff --git a/protocols/Gadu-Gadu/src/core.cpp b/protocols/Gadu-Gadu/src/core.cpp index 886c8b2493..b768be5271 100644 --- a/protocols/Gadu-Gadu/src/core.cpp +++ b/protocols/Gadu-Gadu/src/core.cpp @@ -1270,9 +1270,8 @@ void GGPROTO::broadcastnewstatus(int newStatus) //////////////////////////////////////////////////////////// // When contact is deleted -int GGPROTO::contactdeleted(WPARAM wParam, LPARAM lParam) +int GGPROTO::contactdeleted(WPARAM hContact, LPARAM lParam) { - MCONTACT hContact = wParam; uin_t uin = (uin_t)getDword(hContact, GG_KEY_UIN, 0); // Terminate conference if contact is deleted @@ -1324,10 +1323,9 @@ static TCHAR* sttSettingToTchar( DBVARIANT* value ) return NULL; } -int GGPROTO::dbsettingchanged(WPARAM wParam, LPARAM lParam) +int GGPROTO::dbsettingchanged(WPARAM hContact, LPARAM lParam) { DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING *) lParam; - MCONTACT hContact = wParam; char *szProto = NULL; debugLogA("dbsettingchanged(): fired. szModule=%s szSetting=%s", cws->szModule, cws->szSetting); diff --git a/protocols/Gadu-Gadu/src/gg.cpp b/protocols/Gadu-Gadu/src/gg.cpp index 46d93a75b8..6cdb929f0f 100644 --- a/protocols/Gadu-Gadu/src/gg.cpp +++ b/protocols/Gadu-Gadu/src/gg.cpp @@ -211,9 +211,8 @@ static GGPROTO* gg_getprotoinstance(MCONTACT hContact) ////////////////////////////////////////////////////////// // Handles PrebuildContactMenu event -static int gg_prebuildcontactmenu(WPARAM wParam, LPARAM lParam) +static int gg_prebuildcontactmenu(WPARAM hContact, LPARAM lParam) { - const MCONTACT hContact = wParam; GGPROTO* gg = gg_getprotoinstance(hContact); if (gg == NULL) return 0; @@ -230,9 +229,8 @@ static int gg_prebuildcontactmenu(WPARAM wParam, LPARAM lParam) ////////////////////////////////////////////////////////// // Contact block service function -INT_PTR GGPROTO::blockuser(WPARAM wParam, LPARAM lParam) +INT_PTR GGPROTO::blockuser(WPARAM hContact, LPARAM lParam) { - const MCONTACT hContact = wParam; setByte(hContact, GG_KEY_BLOCK, !getByte(hContact, GG_KEY_BLOCK, 0)); notifyuser(hContact, 1); return 0; diff --git a/protocols/Gadu-Gadu/src/image.cpp b/protocols/Gadu-Gadu/src/image.cpp index 5c874800db..951ca3bbf0 100644 --- a/protocols/Gadu-Gadu/src/image.cpp +++ b/protocols/Gadu-Gadu/src/image.cpp @@ -1171,9 +1171,8 @@ BOOL GGPROTO::img_sendonrequest(gg_event* e) //////////////////////////////////////////////////////////////////////////// // Send Image : Run (Thread and main) -INT_PTR GGPROTO::img_sendimg(WPARAM wParam, LPARAM lParam) +INT_PTR GGPROTO::img_sendimg(WPARAM hContact, LPARAM lParam) { - MCONTACT hContact = wParam; GGIMAGEDLGDATA *dat = NULL; gg_EnterCriticalSection(&img_mutex, "img_sendimg", 64, "img_mutex", 1); diff --git a/protocols/Gadu-Gadu/src/services.cpp b/protocols/Gadu-Gadu/src/services.cpp index 67afbfcf27..5abefd614f 100644 --- a/protocols/Gadu-Gadu/src/services.cpp +++ b/protocols/Gadu-Gadu/src/services.cpp @@ -380,9 +380,8 @@ INT_PTR GGPROTO::get_acc_mgr_gui(WPARAM wParam, LPARAM lParam) // leaves (terminates) conference // registered as ProtoService PS_LEAVECHAT -INT_PTR GGPROTO::leavechat(WPARAM wParam, LPARAM lParam) +INT_PTR GGPROTO::leavechat(WPARAM hContact, LPARAM lParam) { - MCONTACT hContact = wParam; if (hContact) CallService(MS_DB_CONTACT_DELETE, (WPARAM)hContact, 0); -- cgit v1.2.3