From 04ea225a48f0fe836361882cb0f78e7b99ee582f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 24 Feb 2014 12:47:23 +0000 Subject: more useless conversions removed git-svn-id: http://svn.miranda-ng.org/main/trunk@8254 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_blocked.cpp | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) (limited to 'protocols/Skype/src/skype_blocked.cpp') diff --git a/protocols/Skype/src/skype_blocked.cpp b/protocols/Skype/src/skype_blocked.cpp index b807f95059..b1a25dc4db 100644 --- a/protocols/Skype/src/skype_blocked.cpp +++ b/protocols/Skype/src/skype_blocked.cpp @@ -149,17 +149,8 @@ LRESULT CALLBACK CSkypeProto::SkypeBlockedOptionsSubProc(HWND hwnd, UINT msg, WP ListView_DeleteItem(hwnd, lvi.iItem); - int nItem = ::SendMessage( - ::GetDlgItem(GetParent(hwnd), IDC_CONTACTS), - CB_ADDSTRING, - 0, - (LPARAM)sid); - - ::SendMessage( - ::GetDlgItem(GetParent(hwnd), IDC_CONTACTS), - CB_SETITEMDATA, - nItem, - (LPARAM)hContact); + int nItem = ::SendMessage(::GetDlgItem(GetParent(hwnd), IDC_CONTACTS), CB_ADDSTRING, 0, (LPARAM)sid); + ::SendMessage(::GetDlgItem(GetParent(hwnd), IDC_CONTACTS), CB_SETITEMDATA, nItem, hContact); } } } @@ -264,17 +255,8 @@ INT_PTR CALLBACK CSkypeProto::SkypeBlockedOptionsProc(HWND hwndDlg, UINT msg, WP ppro->GetContact((char *)_T2A(sid), contact); if ( !contacts.contains(contact)) { - nItem = ::SendMessage( - ::GetDlgItem(hwndDlg, IDC_CONTACTS), - CB_ADDSTRING, - 0, - (LPARAM)sid); - - ::SendMessage( - ::GetDlgItem(hwndDlg, IDC_CONTACTS), - CB_SETITEMDATA, - nItem, - (LPARAM)hContact); + nItem = ::SendMessage(::GetDlgItem(hwndDlg, IDC_CONTACTS), CB_ADDSTRING, 0, (LPARAM)sid); + ::SendMessage(::GetDlgItem(hwndDlg, IDC_CONTACTS), CB_SETITEMDATA, nItem, hContact); } } -- cgit v1.2.3