diff options
author | George Hazan <ghazan@miranda.im> | 2020-01-20 19:32:28 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-01-20 19:32:28 +0300 |
commit | 999d22f6c3c618cde52097547e53703664d7e665 (patch) | |
tree | 651589d4660b8346729c12f0bea93d0570fba1e3 /src/core | |
parent | 601ec263ad0887d7a8a090badc3c77cfcb24f0d5 (diff) |
db_event_delete: unused parameter removed
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stduihist/src/history.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/stduihist/src/history.cpp b/src/core/stduihist/src/history.cpp index 712a8c1027..05a9081153 100644 --- a/src/core/stduihist/src/history.cpp +++ b/src/core/stduihist/src/history.cpp @@ -229,15 +229,14 @@ static INT_PTR CALLBACK DlgProcHistory(HWND hwndDlg, UINT msg, WPARAM wParam, LP return TRUE;
case IDC_DELETEHISTORY:
- MEVENT hDbevent;
{
int index = SendDlgItemMessage(hwndDlg, IDC_LIST, LB_GETCURSEL, 0, 0);
if (index == LB_ERR)
break;
if (MessageBox(hwndDlg, TranslateT("Are you sure you want to delete this history item?"), TranslateT("Delete history"), MB_YESNO | MB_ICONQUESTION) == IDYES) {
- hDbevent = SendDlgItemMessage(hwndDlg, IDC_LIST, LB_GETITEMDATA, index, 0);
- db_event_delete(hContact, hDbevent);
+ MEVENT hDbevent = SendDlgItemMessage(hwndDlg, IDC_LIST, LB_GETITEMDATA, index, 0);
+ db_event_delete(hDbevent);
SendMessage(hwndDlg, DM_HREBUILD, 0, 0);
}
}
|