summaryrefslogtreecommitdiff
path: root/plugins/BasicHistory/src/HistoryWindow.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2015-07-24 17:57:08 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2015-07-24 17:57:08 +0000
commitccba5a84f3779625db470d6642a9f42fc0b8907b (patch)
tree782565487e41657325b53761cff232bd585b5510 /plugins/BasicHistory/src/HistoryWindow.cpp
parent9033485843f01979b47c1cf9d13413fbf2f91f35 (diff)
BasicHistory - warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14680 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BasicHistory/src/HistoryWindow.cpp')
-rw-r--r--plugins/BasicHistory/src/HistoryWindow.cpp10
1 files changed, 2 insertions, 8 deletions
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<MCONTACT, HistoryWindow*>::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);