summaryrefslogtreecommitdiff
path: root/plugins/TrafficCounter/src/statistics.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-26 09:20:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-26 09:20:25 +0000
commit6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac (patch)
tree2e8bb660c908b54914abd562af8aafa4a486c846 /plugins/TrafficCounter/src/statistics.cpp
parenta61c8728b379057fe7f0a0d86fe0b037598229dd (diff)
less TCHARs:
- TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TrafficCounter/src/statistics.cpp')
-rw-r--r--plugins/TrafficCounter/src/statistics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TrafficCounter/src/statistics.cpp b/plugins/TrafficCounter/src/statistics.cpp
index 709d7e3724..cb0f7e3f6d 100644
--- a/plugins/TrafficCounter/src/statistics.cpp
+++ b/plugins/TrafficCounter/src/statistics.cpp
@@ -174,7 +174,7 @@ INT_PTR CALLBACK DlgProcOptStatistics(HWND hwndDlg, UINT msg, WPARAM wParam, LPA
SYSTEMTIME st = { 0 };
DWORD Index, Value;
double vartime;
- TCHAR szBufW[64];
+ wchar_t szBufW[64];
BYTE EldestAcc;
if (!(pdi->item.mask & LVIF_TEXT)) return 0;
@@ -229,7 +229,7 @@ INT_PTR CALLBACK DlgProcOptStatistics(HWND hwndDlg, UINT msg, WPARAM wParam, LPA
break;
case 4: // Время
{
- TCHAR *Fmt[5] = { L"m:ss", L"h:mm:ss", L"h:mm:ss", L"d hh:mm:ss", L"d hh:mm:ss" };
+ wchar_t *Fmt[5] = { L"m:ss", L"h:mm:ss", L"h:mm:ss", L"d hh:mm:ss", L"d hh:mm:ss" };
GetDurationFormatM(Value, Fmt[unOptions.Stat_Tab], pdi->item.pszText, 32);
}
break;
@@ -297,7 +297,7 @@ void Stat_ReadFile(BYTE n)
{
LARGE_INTEGER Size;
DWORD BytesRead;
- TCHAR FileName[MAX_PATH], *pszPath;
+ wchar_t FileName[MAX_PATH], *pszPath;
SYSTEMTIME stNow;
pszPath = Utils_ReplaceVarsT(L"%miranda_userdata%\\statistics");
@@ -350,7 +350,7 @@ void Stat_Show(HWND hwndDialog)
void Stat_UpdateTotalTraffic(HWND hwndDialog, DWORD Incoming, DWORD Outgoing)
{
- TCHAR tmp[32];
+ wchar_t tmp[32];
GetFormattedTraffic(Incoming, unOptions.Stat_Units, tmp, 32);
SetDlgItemText(hwndDialog, IDC_STATIC_DNL, tmp);