summaryrefslogtreecommitdiff
path: root/plugins/Ping/src/log.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-25 10:31:04 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-25 10:31:04 +0000
commit8ae3679aa1339ce9abee53adb69902bd6b7513dc (patch)
tree94ef8927e12043ed6dcc15e1e640d68a8add520e /plugins/Ping/src/log.cpp
parent1e273e28d89b5838e3d0f0cafac9676577cb71ce (diff)
hello, Unix.
phase 1: removing _T() git-svn-id: http://svn.miranda-ng.org/main/trunk@17127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Ping/src/log.cpp')
-rw-r--r--plugins/Ping/src/log.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Ping/src/log.cpp b/plugins/Ping/src/log.cpp
index cce8d2e61c..59538f577e 100644
--- a/plugins/Ping/src/log.cpp
+++ b/plugins/Ping/src/log.cpp
@@ -15,13 +15,13 @@ INT_PTR Log(WPARAM wParam, LPARAM) {
TCHAR *line = (TCHAR *)wParam;
- FILE *f = _tfopen(buf, _T("a+"));
+ FILE *f = _tfopen(buf, L"a+");
if (f) {
if (options.log_csv) {
- _ftprintf(f, _T("%s, %s, %s\n"), dbuf, tbuf, line);
+ _ftprintf(f, L"%s, %s, %s\n", dbuf, tbuf, line);
}
else {
- _ftprintf(f, _T("%s, %s: %s\n"), dbuf, tbuf, line);
+ _ftprintf(f, L"%s, %s: %s\n", dbuf, tbuf, line);
}
fclose(f);
}
@@ -34,7 +34,7 @@ INT_PTR GetLogFilename(WPARAM wParam, LPARAM lParam) {
TCHAR *filename = (TCHAR *)lParam;
if (db_get_ts(0, PLUG, "LogFilename", &dbv)) {
CallService(MS_DB_GETPROFILEPATHT, wParam, (LPARAM)filename);
- mir_tstrncat(filename, _T("\\ping_log.txt"), wParam - mir_tstrlen(filename));
+ mir_tstrncat(filename, L"\\ping_log.txt", wParam - mir_tstrlen(filename));
}
else {
mir_tstrncpy(filename, dbv.ptszVal, wParam);
@@ -54,6 +54,6 @@ INT_PTR SetLogFilename(WPARAM, LPARAM lParam) {
INT_PTR ViewLogData(WPARAM wParam, LPARAM) {
TCHAR buf[MAX_PATH];
CallService(PLUG "/GetLogFilename", (WPARAM)MAX_PATH, (LPARAM)buf);
- return (INT_PTR)ShellExecute((HWND)wParam, _T("edit"), buf, _T(""), _T(""), SW_SHOW);
+ return (INT_PTR)ShellExecute((HWND)wParam, L"edit", buf, L"", L"", SW_SHOW);
}