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 --- plugins/RecentContacts/src/RecentContacts.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/RecentContacts') diff --git a/plugins/RecentContacts/src/RecentContacts.cpp b/plugins/RecentContacts/src/RecentContacts.cpp index 45e07dd431..86758e4288 100644 --- a/plugins/RecentContacts/src/RecentContacts.cpp +++ b/plugins/RecentContacts/src/RecentContacts.cpp @@ -222,7 +222,7 @@ INT_PTR CALLBACK ShowListMainDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM int i=0; cmultimap::iterator curContact; - std::tstring str; + std::wstring str; char strtim[256 + 16]; string strtimformat; @@ -237,7 +237,7 @@ INT_PTR CALLBACK ShowListMainDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM for(curContact = DlgDat->Contacts->begin(); curContact != DlgDat->Contacts->end(); curContact++) { if (curContact->second != NULL && db_get_b(curContact->second, dbLastUC_ModuleName, dbLastUC_IgnoreContact, 0) == 0 ) { - TCHAR *cname = ( TCHAR* )pcli->pfnGetContactDisplayName(curContact->second, 0); + wchar_t *cname = ( wchar_t* )pcli->pfnGetContactDisplayName(curContact->second, 0); if ( cname == NULL ) continue; @@ -504,9 +504,9 @@ int OnMsgEvent(WPARAM, LPARAM lParam) static int OnPrebuildContactMenu(WPARAM hContact, LPARAM) { if (db_get_b(hContact, dbLastUC_ModuleName, dbLastUC_IgnoreContact, 0) == 0) - Menu_ModifyItem(hMenuItemRemove, LPGENT("Ignore Contact")); + Menu_ModifyItem(hMenuItemRemove, LPGENW("Ignore Contact")); else - Menu_ModifyItem(hMenuItemRemove, LPGENT("Show Contact")); + Menu_ModifyItem(hMenuItemRemove, LPGENW("Show Contact")); return 0; } -- cgit v1.2.3