From 8ae3679aa1339ce9abee53adb69902bd6b7513dc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Jul 2016 10:31:04 +0000 Subject: hello, Unix. phase 1: removing _T() git-svn-id: http://svn.miranda-ng.org/main/trunk@17127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FTPFileYM/src/job_generic.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/FTPFileYM/src/job_generic.cpp') diff --git a/plugins/FTPFileYM/src/job_generic.cpp b/plugins/FTPFileYM/src/job_generic.cpp index f3cab81cd3..92dabed7d9 100644 --- a/plugins/FTPFileYM/src/job_generic.cpp +++ b/plugins/FTPFileYM/src/job_generic.cpp @@ -54,8 +54,8 @@ GenericJob::~GenericJob() int GenericJob::openFileDialog() { - TCHAR temp[MAX_PATH] = _T(""); - mir_sntprintf(temp, _T("%s\0*.*\0"), TranslateT("All Files (*.*)")); + TCHAR temp[MAX_PATH] = L""; + mir_sntprintf(temp, L"%s\0*.*\0", TranslateT("All Files (*.*)")); OPENFILENAME ofn = { 0 }; ofn.lStructSize = sizeof(ofn); ofn.hwndOwner = 0; @@ -92,7 +92,7 @@ void GenericJob::getFilesFromOpenDialog() { TCHAR *ptr = m_tszFilePath + length + 1; while (ptr[0]) { - mir_sntprintf(stzFile, _T("%s\\%s"), m_tszFilePath, ptr); + mir_sntprintf(stzFile, L"%s\\%s", m_tszFilePath, ptr); addFile(stzFile); ptr += mir_tstrlen(ptr) + 1; } @@ -113,10 +113,10 @@ int GenericJob::getFilesFromFolder(TCHAR *stzFolder) } WIN32_FIND_DATA ffd; - HANDLE hFind = FindFirstFile(_T("*.*"), &ffd); + HANDLE hFind = FindFirstFile(L"*.*", &ffd); while (hFind != INVALID_HANDLE_VALUE) { if (!(ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { - mir_sntprintf(stzFile, _T("%s\\%s"), stzFolder, ffd.cFileName); + mir_sntprintf(stzFile, L"%s\\%s", stzFolder, ffd.cFileName); addFile(stzFile); } -- cgit v1.2.3