diff options
| author | George Hazan <george.hazan@gmail.com> | 2014-02-10 21:37:41 +0000 | 
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2014-02-10 21:37:41 +0000 | 
| commit | ee68ac82d5aabb596e8bd0f2b9286827ca2ce545 (patch) | |
| tree | 2b330d60da88d6c195ae1943ad93fe2b393469fd /plugins/SimpleStatusMsg/src | |
| parent | 6aff7a968c46f4080a24bd372c6ec1337766adf7 (diff) | |
these conversions aren't needed either
git-svn-id: http://svn.miranda-ng.org/main/trunk@8088 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SimpleStatusMsg/src')
| -rw-r--r-- | plugins/SimpleStatusMsg/src/awaymsg.cpp | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/SimpleStatusMsg/src/awaymsg.cpp b/plugins/SimpleStatusMsg/src/awaymsg.cpp index 2104b0e192..f0ff0661f4 100644 --- a/plugins/SimpleStatusMsg/src/awaymsg.cpp +++ b/plugins/SimpleStatusMsg/src/awaymsg.cpp @@ -97,7 +97,7 @@ static INT_PTR CALLBACK ReadAwayMsgDlgProc(HWND hwndDlg, UINT message, WPARAM wP  			dat = (AwayMsgDlgData*)mir_alloc(sizeof(AwayMsgDlgData));
  			SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)dat);
 -			dat->hContact = (MCONTACT)lParam;
 +			dat->hContact = lParam;
  			dat->hSeq = (HANDLE)CallContactService(dat->hContact, PSS_GETAWAYMSG, 0, 0);
  			dat->hAwayMsgEvent = dat->hSeq ? HookEventMessage(ME_PROTO_ACK, hwndDlg, HM_AWAYMSG) : NULL;
  			WindowList_Add(hWindowList, hwndDlg, dat->hContact);
 @@ -126,7 +126,7 @@ static INT_PTR CALLBACK ReadAwayMsgDlgProc(HWND hwndDlg, UINT message, WPARAM wP  				SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM)LoadSkinnedProtoIcon(szProto, dwStatus));
  				EnableWindow(GetDlgItem(hwndDlg, IDC_COPY), FALSE);
  			}
 -			Utils_RestoreWindowPosition(hwndDlg, (MCONTACT)lParam, "SRAway", "AwayMsgDlg");
 +			Utils_RestoreWindowPosition(hwndDlg, lParam, "SRAway", "AwayMsgDlg");
  			return TRUE;
  		case HM_AWAYMSG:
 @@ -203,7 +203,7 @@ static INT_PTR CALLBACK ReadAwayMsgDlgProc(HWND hwndDlg, UINT message, WPARAM wP  static INT_PTR GetMessageCommand(WPARAM wParam, LPARAM)
  {
 -	if (HWND hwnd = WindowList_Find(hWindowList, (MCONTACT)wParam))
 +	if (HWND hwnd = WindowList_Find(hWindowList, wParam))
  	{
  		SetForegroundWindow(hwnd);
  		SetFocus(hwnd);
 @@ -227,7 +227,7 @@ static INT_PTR CALLBACK CopyAwayMsgDlgProc(HWND hwndDlg, UINT message, WPARAM wP  			dat = (AwayMsgDlgData*)mir_alloc(sizeof(AwayMsgDlgData));
  			SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)dat);
 -			dat->hContact = (MCONTACT)lParam;
 +			dat->hContact = lParam;
  			dat->hSeq = (HANDLE)CallContactService(dat->hContact, PSS_GETAWAYMSG, 0, 0);
  			dat->hAwayMsgEvent = dat->hSeq ? HookEventMessage(ME_PROTO_ACK, hwndDlg, HM_AWAYMSG) : NULL;
  			WindowList_Add(hWindowList2, hwndDlg, dat->hContact);
 @@ -301,7 +301,7 @@ static INT_PTR CALLBACK CopyAwayMsgDlgProc(HWND hwndDlg, UINT message, WPARAM wP  static INT_PTR CopyAwayMsgCommand(WPARAM wParam, LPARAM)
  {
 -	if (HWND hwnd = WindowList_Find(hWindowList2, (MCONTACT)wParam))
 +	if (HWND hwnd = WindowList_Find(hWindowList2, wParam))
  	{
  		SetForegroundWindow(hwnd);
  		SetFocus(hwnd);
 @@ -330,7 +330,7 @@ static char *StrFindURL(char *pszStr)  static INT_PTR GoToURLMsgCommand(WPARAM wParam, LPARAM lParam)
  {
 -	ptrA szMsg(db_get_sa((MCONTACT)wParam, "CList", "StatusMsg"));
 +	ptrA szMsg(db_get_sa(wParam, "CList", "StatusMsg"));
  	char *szURL = StrFindURL(szMsg);
  	if (szURL != NULL)
 @@ -354,8 +354,8 @@ static INT_PTR GoToURLMsgCommand(WPARAM wParam, LPARAM lParam)  static int AwayMsgPreBuildMenu(WPARAM wParam, LPARAM lParam)
  {
  	TCHAR str[128];
 -	char *szProto = GetContactProto((MCONTACT)wParam);
 -	int iHidden = szProto ? db_get_b((MCONTACT)wParam, szProto, "ChatRoom", 0) : 0;
 +	char *szProto = GetContactProto(wParam);
 +	int iHidden = szProto ? db_get_b(wParam, szProto, "ChatRoom", 0) : 0;
  	int iStatus;
  	CLISTMENUITEM clmi = { sizeof(clmi) };
 @@ -363,7 +363,7 @@ static int AwayMsgPreBuildMenu(WPARAM wParam, LPARAM lParam)  	clmi.flags = CMIM_FLAGS | CMIF_HIDDEN | CMIF_TCHAR;
  	if (!iHidden) {
  		iHidden = 1;
 -		iStatus = db_get_w((MCONTACT)wParam, szProto, "Status", ID_STATUS_OFFLINE);
 +		iStatus = db_get_w(wParam, szProto, "Status", ID_STATUS_OFFLINE);
  		if (CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_1,0) & PF1_MODEMSGRECV) {
  			if (CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_3,0) & Proto_Status2Flag(iStatus == ID_STATUS_OFFLINE ? ID_STATUS_INVISIBLE : iStatus)) {
  				iHidden = 0;
 @@ -377,7 +377,7 @@ static int AwayMsgPreBuildMenu(WPARAM wParam, LPARAM lParam)  	Menu_ModifyItem(hAwayMsgMenuItem, &clmi);
  	Skin_ReleaseIcon(clmi.hIcon);
 -	ptrA szMsg(db_get_sa((MCONTACT)wParam, "CList", "StatusMsg"));
 +	ptrA szMsg(db_get_sa(wParam, "CList", "StatusMsg"));
  	clmi.flags = CMIM_FLAGS | CMIF_HIDDEN | CMIF_TCHAR;
  	if (!iHidden && szMsg != NULL) {
  | 
