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 --- protocols/Yahoo/src/util.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Yahoo/src/util.cpp') diff --git a/protocols/Yahoo/src/util.cpp b/protocols/Yahoo/src/util.cpp index c4c5e692a2..44584763b6 100644 --- a/protocols/Yahoo/src/util.cpp +++ b/protocols/Yahoo/src/util.cpp @@ -105,7 +105,7 @@ static LRESULT CALLBACK PopupWindowProc(HWND hWnd, UINT message, WPARAM wParam, return DefWindowProc(hWnd, message, wParam, lParam); } -int CYahooProto::ShowPopup(const TCHAR* nickname, const TCHAR* msg, const char *szURL) +int CYahooProto::ShowPopup(const wchar_t* nickname, const wchar_t* msg, const char *szURL) { if (!ServiceExists(MS_POPUP_ADDPOPUPT)) return 0; @@ -127,14 +127,14 @@ int CYahooProto::ShowPopup(const TCHAR* nickname, const TCHAR* msg, const char * return 1; } -int CYahooProto::ShowNotification(const TCHAR *title, const TCHAR *info, DWORD flags) +int CYahooProto::ShowNotification(const wchar_t *title, const wchar_t *info, DWORD flags) { if (ServiceExists(MS_CLIST_SYSTRAY_NOTIFY)) { MIRANDASYSTRAYNOTIFY err; err.szProto = m_szModuleName; err.cbSize = sizeof(err); - err.tszInfoTitle = (TCHAR*)title; - err.tszInfo = (TCHAR*)info; + err.tszInfoTitle = (wchar_t*)title; + err.tszInfo = (wchar_t*)info; err.dwInfoFlags = flags | NIIF_INTERN_UNICODE; err.uTimeout = 1000 * 3; INT_PTR ret = CallService(MS_CLIST_SYSTRAY_NOTIFY, 0, (LPARAM)& err); @@ -146,7 +146,7 @@ int CYahooProto::ShowNotification(const TCHAR *title, const TCHAR *info, DWORD f return 0; } -void CYahooProto::ShowError(const TCHAR *title, const TCHAR *buff) +void CYahooProto::ShowError(const wchar_t *title, const wchar_t *buff) { if (getByte("ShowErrors", 1)) if (!ShowPopup(title, buff, NULL)) -- cgit v1.2.3