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 --- src/modules/chat/clist.cpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'src/modules/chat') diff --git a/src/modules/chat/clist.cpp b/src/modules/chat/clist.cpp index 1400bc8d07..64af00ea2c 100644 --- a/src/modules/chat/clist.cpp +++ b/src/modules/chat/clist.cpp @@ -101,9 +101,8 @@ BOOL SetAllOffline(BOOL bHide, const char *pszModule) return TRUE; } -int RoomDoubleclicked(WPARAM wParam, LPARAM lParam) +int RoomDoubleclicked(WPARAM hContact, LPARAM lParam) { - MCONTACT hContact = wParam; if (!hContact) return 0; @@ -139,37 +138,34 @@ INT_PTR EventDoubleclicked(WPARAM wParam,LPARAM lParam) return RoomDoubleclicked((WPARAM)((CLISTEVENT*)lParam)->hContact, 0); } -INT_PTR JoinChat(WPARAM wParam, LPARAM lParam) +INT_PTR JoinChat(WPARAM hContact, LPARAM lParam) { - MCONTACT hContact = wParam; if (hContact) { char *szProto = GetContactProto(hContact); if (szProto) { if (db_get_w(hContact, szProto, "Status", 0) == ID_STATUS_OFFLINE) - CallProtoService(szProto, PS_JOINCHAT, wParam, lParam); + CallProtoService(szProto, PS_JOINCHAT, hContact, lParam); else - RoomDoubleclicked(wParam, 0); + RoomDoubleclicked(hContact, 0); } } return 0; } -INT_PTR LeaveChat(WPARAM wParam, LPARAM lParam) +INT_PTR LeaveChat(WPARAM hContact, LPARAM lParam) { - MCONTACT hContact = wParam; if (hContact) { char *szProto = GetContactProto(hContact); if (szProto) - CallProtoService(szProto, PS_LEAVECHAT, wParam, lParam); + CallProtoService(szProto, PS_LEAVECHAT, hContact, lParam); } return 0; } -int PrebuildContactMenu(WPARAM wParam, LPARAM) +int PrebuildContactMenu(WPARAM hContact, LPARAM) { - MCONTACT hContact = wParam; - if (hContact == NULL) + if (hContact == 0) return 0; bool bEnabled = false; -- cgit v1.2.3