summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/statistic.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-24 21:11:51 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-24 21:11:51 +0000
commit6828926a4d4eefef4632e97646f639c8ec24d0ab (patch)
tree01747ba326526e69b4d64df3416acfe0ca6d9446 /plugins/HistoryStats/src/statistic.cpp
parentd41cb4808c648d458be7615d6a72003e3614538d (diff)
HistoryStats project conversion
git-svn-id: http://svn.miranda-ng.org/main/trunk@13110 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryStats/src/statistic.cpp')
-rw-r--r--plugins/HistoryStats/src/statistic.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/HistoryStats/src/statistic.cpp b/plugins/HistoryStats/src/statistic.cpp
index 85ee17b7be..d4590f5f9e 100644
--- a/plugins/HistoryStats/src/statistic.cpp
+++ b/plugins/HistoryStats/src/statistic.cpp
@@ -1,4 +1,4 @@
-#include "_globals.h"
+#include "stdafx.h"
#include "statistic.h"
#include <algorithm>
@@ -285,7 +285,7 @@ void Statistic::handleAddChat(Contact& contact, bool bOutgoing, DWORD localTimes
}
}
-INT_PTR CALLBACK Statistic::staticProgressProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
+INT_PTR CALLBACK Statistic::staticProgressProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM)
{
Statistic* pStats = reinterpret_cast<Statistic*>(GetWindowLongPtr(hDlg, GWLP_USERDATA));
@@ -1376,9 +1376,6 @@ DWORD WINAPI Statistic::threadProc(LPVOID lpParameter)
SetEvent(pStats->m_hThreadPushEvent);
- // perform action
- bool bSuccess = pStats->createStatistics();
-
// check for errors
if (!pStats->m_ErrorText.empty() && !mu::system::terminated())
MessageBox(0, pStats->m_ErrorText.c_str(), TranslateT("HistoryStats - Error"), MB_ICONERROR | MB_OK);
@@ -1465,7 +1462,7 @@ Statistic::~Statistic()
}
}
-void Statistic::run(const Settings& settings, InvocationSource invokedFrom, HINSTANCE hInst, HWND hWndParent /* = NULL */)
+void Statistic::run(const Settings& settings, InvocationSource invokedFrom, HINSTANCE hInst, HWND)
{
// check if running and make running
if (m_bRunning) {