summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-01-20 19:32:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-01-20 19:32:28 +0300
commit999d22f6c3c618cde52097547e53703664d7e665 (patch)
tree651589d4660b8346729c12f0bea93d0570fba1e3 /src/core
parent601ec263ad0887d7a8a090badc3c77cfcb24f0d5 (diff)
db_event_delete: unused parameter removed
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stduihist/src/history.cpp5
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);
}
}