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/SmileyAdd/src/download.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/SmileyAdd/src/download.cpp') diff --git a/plugins/SmileyAdd/src/download.cpp b/plugins/SmileyAdd/src/download.cpp index 5c39cc3844..b015c34603 100644 --- a/plugins/SmileyAdd/src/download.cpp +++ b/plugins/SmileyAdd/src/download.cpp @@ -158,13 +158,13 @@ void __cdecl SmileyDownloadThread(void*) bool GetSmileyFile(CMString &url, const CMString &packstr) { - _TPattern *urlsplit = _TPattern::compile(_T(".*/(.*)")); + _TPattern *urlsplit = _TPattern::compile(L".*/(.*)"); _TMatcher *m0 = urlsplit->createTMatcher(url); m0->findFirstMatch(); CMString filename; - filename.AppendFormat(_T("%s\\%s\\"), cachepath, packstr.c_str()); + filename.AppendFormat(L"%s\\%s\\", cachepath, packstr.c_str()); int pathpos = filename.GetLength(); filename += m0->getGroup(1); @@ -173,7 +173,7 @@ bool GetSmileyFile(CMString &url, const CMString &packstr) bool needext = filename.Find('.') == -1; if (needext) - filename += _T(".*"); + filename += L".*"; _tfinddata_t c_file; INT_PTR hFile = _tfindfirst((TCHAR*)filename.c_str(), &c_file); @@ -202,18 +202,18 @@ bool GetSmileyFile(CMString &url, const CMString &packstr) int FolderChanged(WPARAM, LPARAM) { - FoldersGetCustomPathT(hFolder, cachepath, MAX_PATH, _T("")); + FoldersGetCustomPathT(hFolder, cachepath, MAX_PATH, L""); return 0; } void GetSmileyCacheFolder(void) { - hFolder = FoldersRegisterCustomPathT(LPGEN("SmileyAdd"), LPGEN("Smiley cache"), MIRANDA_USERDATAT _T("\\SmileyCache")); + hFolder = FoldersRegisterCustomPathT(LPGEN("SmileyAdd"), LPGEN("Smiley cache"), MIRANDA_USERDATAT L"\\SmileyCache"); if (hFolder) { - FoldersGetCustomPathT(hFolder, cachepath, MAX_PATH, _T("")); + FoldersGetCustomPathT(hFolder, cachepath, MAX_PATH, L""); HookEvent(ME_FOLDERS_PATH_CHANGED, FolderChanged); } - else mir_tstrncpy(cachepath, VARST(_T("%miranda_userdata%\\SmileyCache")), MAX_PATH); + else mir_tstrncpy(cachepath, VARST(L"%miranda_userdata%\\SmileyCache"), MAX_PATH); } void DownloadInit(void) -- cgit v1.2.3