diff options
author | George Hazan <george.hazan@gmail.com> | 2016-07-26 09:20:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-07-26 09:20:25 +0000 |
commit | 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac (patch) | |
tree | 2e8bb660c908b54914abd562af8aafa4a486c846 /plugins/MirandaG15/src/CAppletManager.cpp | |
parent | a61c8728b379057fe7f0a0d86fe0b037598229dd (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/MirandaG15/src/CAppletManager.cpp')
-rw-r--r-- | plugins/MirandaG15/src/CAppletManager.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/MirandaG15/src/CAppletManager.cpp b/plugins/MirandaG15/src/CAppletManager.cpp index b1be837708..ddaaeef100 100644 --- a/plugins/MirandaG15/src/CAppletManager.cpp +++ b/plugins/MirandaG15/src/CAppletManager.cpp @@ -199,10 +199,10 @@ bool CAppletManager::Shutdown() //************************************************************************ // Translates the specified string, and inserts the parameters //************************************************************************ -tstring CAppletManager::TranslateString(TCHAR *szString, ...) +tstring CAppletManager::TranslateString(wchar_t *szString, ...) { - TCHAR out[1024]; - TCHAR *szTranslatedString = TranslateTS(szString); + wchar_t out[1024]; + wchar_t *szTranslatedString = TranslateTS(szString); va_list body; va_start(body, szString); @@ -532,19 +532,19 @@ tstring CAppletManager::GetFormattedTimestamp(tm *tm_time) time(&now); localtime_s(&tm_now, &now); - TCHAR buffer[128]; + wchar_t buffer[128]; if (tm_time->tm_mday != tm_now.tm_mday || tm_time->tm_mon != tm_now.tm_mon) { if (CConfig::GetBoolSetting(TIMESTAMP_SECONDS)) - _tcsftime(buffer, 128, L"[%x %H:%M:%S]", tm_time); + wcsftime(buffer, 128, L"[%x %H:%M:%S]", tm_time); else - _tcsftime(buffer, 128, L"[%x %H:%M]", tm_time); + wcsftime(buffer, 128, L"[%x %H:%M]", tm_time); } else { if (CConfig::GetBoolSetting(TIMESTAMP_SECONDS)) - _tcsftime(buffer, 128, L"[%H:%M:%S]", tm_time); + wcsftime(buffer, 128, L"[%H:%M:%S]", tm_time); else - _tcsftime(buffer, 128, L"[%H:%M]", tm_time); + wcsftime(buffer, 128, L"[%H:%M]", tm_time); } return toTstring(buffer); @@ -875,7 +875,7 @@ bool CAppletManager::TranslateDBEvent(CEvent *pEvent, WPARAM hContact, LPARAM hd pEvent->strValue = Utf8_Decode((char*)dbevent.pBlob); } else if ((int)dbevent.cbBlob == msglen * 3) { - pEvent->strValue = (TCHAR *)& dbevent.pBlob[msglen]; + pEvent->strValue = (wchar_t *)& dbevent.pBlob[msglen]; } else { pEvent->strValue = toTstring((char*)dbevent.pBlob); |