From 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jul 2016 09:20:25 +0000 Subject: 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 --- plugins/TrafficCounter/src/statistics.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/TrafficCounter/src/statistics.cpp') 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); -- cgit v1.2.3