From ccba5a84f3779625db470d6642a9f42fc0b8907b Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 24 Jul 2015 17:57:08 +0000 Subject: BasicHistory - warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14680 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BasicHistory/src/HistoryWindow.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'plugins/BasicHistory/src/HistoryWindow.cpp') diff --git a/plugins/BasicHistory/src/HistoryWindow.cpp b/plugins/BasicHistory/src/HistoryWindow.cpp index 56488dad5e..055a1c6e40 100644 --- a/plugins/BasicHistory/src/HistoryWindow.cpp +++ b/plugins/BasicHistory/src/HistoryWindow.cpp @@ -292,7 +292,7 @@ void HistoryWindow::Focus() SendMessage(hWnd,DM_HREBUILD,0,0); } -int HistoryWindow::FontsChanged(WPARAM wParam, LPARAM lParam) +int HistoryWindow::FontsChanged(WPARAM, LPARAM) { for (std::map::iterator it = windows.begin(); it != windows.end(); ++it) { @@ -428,8 +428,6 @@ void HistoryWindow::OptionsSearchingChanged() INT_PTR HistoryWindow::DeleteAllUserHistory(WPARAM hContact, LPARAM) { HWND hWnd = NULL; - int start = 0; - int end = 0; int count = HistoryEventList::GetContactMessageNumber(hContact); if (!count) return FALSE; @@ -715,7 +713,6 @@ INT_PTR CALLBACK HistoryWindow::DlgProcHistory(HWND hwndDlg, UINT msg, WPARAM wP if (msgFilter->msg == WM_RBUTTONUP) { POINT clicked; - LPNMITEMACTIVATE nmlv = (LPNMITEMACTIVATE)lParam; HWND window = historyWindow->editWindow; POINTL p; POINT scrool; @@ -930,7 +927,6 @@ INT_PTR CALLBACK HistoryWindow::DlgProcHistory(HWND hwndDlg, UINT msg, WPARAM wP clicked.y = info.pt.y = nmlv->ptAction.y; ClientToScreen(window, &clicked); int newSel = SendMessage(window, LVM_SUBITEMHITTEST, 0, (LPARAM)&info); - int curSel = historyWindow->selected; if (newSel >= 0) { HMENU hPopupMenu = CreatePopupMenu(); @@ -1328,7 +1324,7 @@ void HistoryWindow::FillHistoryThread(void* param) SetFocus(hwndList); } -void HistoryWindow::AddGroup(bool isMe, const std::wstring &time, const std::wstring &user, const std::wstring &eventText, int ico) +void HistoryWindow::AddGroup(bool, const std::wstring &time, const std::wstring &user, const std::wstring &eventText, int ico) { TCHAR msg[256]; msg[0] = 0; @@ -1537,7 +1533,6 @@ void HistoryWindow::SelectEventGroup(int sel) UpdateWindow(editWindow); if (isStartSelect && !Options::instance->messagesNewOnTop) { - HWND h = SetFocus(editWindow); CHARRANGE ch; ch.cpMin = ch.cpMax = MAXLONG; SendMessage(editWindow, EM_EXSETSEL, 0, (LPARAM)&ch); @@ -1582,7 +1577,6 @@ LRESULT CALLBACK HistoryWindow::SplitterSubclassProc(HWND hwnd, UINT msg, WPARAM return 1; case WM_LBUTTONUP: - HWND hwndCapture = GetCapture(); ReleaseCapture(); SendMessage(hwndParent, WM_SIZE, 0, 0); RedrawWindow(hwndParent, NULL, NULL, RDW_ALLCHILDREN | RDW_INVALIDATE | RDW_UPDATENOW); -- cgit v1.2.3