summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_blocked.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-02-24 12:47:23 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-02-24 12:47:23 +0000
commit04ea225a48f0fe836361882cb0f78e7b99ee582f (patch)
tree10c284c74489c884cb5888fa32259bde6b5c413a /protocols/Skype/src/skype_blocked.cpp
parent9c8e399b431a9b0995efd24752a47efbe6e84ade (diff)
more useless conversions removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@8254 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_blocked.cpp')
-rw-r--r--protocols/Skype/src/skype_blocked.cpp26
1 files changed, 4 insertions, 22 deletions
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);
}
}