From 2f261839b60692e33d0e160344d0d636d49c90ba Mon Sep 17 00:00:00 2001
From: George Hazan <george.hazan@gmail.com>
Date: Wed, 27 Jul 2016 14:23:31 +0000
Subject: less TCHARs

git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 plugins/MirandaG15/src/CAppletManager.cpp       | 4 ++--
 plugins/MirandaG15/src/CConfig.cpp              | 4 ++--
 plugins/MirandaG15/src/CContactList.cpp         | 4 ++--
 plugins/MirandaG15/src/LCDFramework/CLCDGfx.cpp | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

(limited to 'plugins/MirandaG15')

diff --git a/plugins/MirandaG15/src/CAppletManager.cpp b/plugins/MirandaG15/src/CAppletManager.cpp
index b914945698..436881080f 100644
--- a/plugins/MirandaG15/src/CAppletManager.cpp
+++ b/plugins/MirandaG15/src/CAppletManager.cpp
@@ -1127,7 +1127,7 @@ int CAppletManager::HookChatInbound(WPARAM, LPARAM lParam)
 
 	// fetch the network name
 	if (gcd->iType == GC_EVENT_CHANGESESSIONAME) {
-		if (gcd->ptszID && !mir_tstrcmpi(gcd->ptszID, L"Network log")) {
+		if (gcd->ptszID && !mir_wstrcmpi(gcd->ptszID, L"Network log")) {
 			pIRCCon->strNetwork = toTstring(gce->ptszText);
 			TRACE(L"\t Found network identifier: %s\n", pIRCCon->strNetwork.c_str());
 			return 0;
@@ -1149,7 +1149,7 @@ int CAppletManager::HookChatInbound(WPARAM, LPARAM lParam)
 		if (pos != tstring::npos)
 			strChannel = strChannel.substr(0, pos - 1);
 		else {
-			if (mir_tstrcmpi(gcd->ptszID, L"Network log"))
+			if (mir_wstrcmpi(gcd->ptszID, L"Network log"))
 				TRACE(L"\t WARNING: ignoring unknown event!\n");
 			return 0;
 		}
diff --git a/plugins/MirandaG15/src/CConfig.cpp b/plugins/MirandaG15/src/CConfig.cpp
index 46cd677105..5903b8f2ca 100644
--- a/plugins/MirandaG15/src/CConfig.cpp
+++ b/plugins/MirandaG15/src/CConfig.cpp
@@ -338,9 +338,9 @@ void CConfig::LoadFontSettings(int iFont)
 	mir_snprintf(szSetting, "Font%dName", iFont);
 	DBVARIANT dbv;
 	if (db_get_ts(NULL, "MirandaG15", szSetting, &dbv))
-		mir_tstrcpy(m_logfont[iFont].lfFaceName, L"Small Fonts");
+		mir_wstrcpy(m_logfont[iFont].lfFaceName, L"Small Fonts");
 	else {
-		mir_tstrcpy(m_logfont[iFont].lfFaceName, dbv.ptszVal);
+		mir_wstrcpy(m_logfont[iFont].lfFaceName, dbv.ptszVal);
 		db_free(&dbv);
 	}
 
diff --git a/plugins/MirandaG15/src/CContactList.cpp b/plugins/MirandaG15/src/CContactList.cpp
index 69a7e1e972..d8bd87325d 100644
--- a/plugins/MirandaG15/src/CContactList.cpp
+++ b/plugins/MirandaG15/src/CContactList.cpp
@@ -502,7 +502,7 @@ bool CContactList::CompareEntries(CListEntry<CContactListEntry*,CContactListGrou
 		else if(pLeftEntry->iStatus != pRightEntry->iStatus)
 			return (aiStatusPriority[pLeftEntry->iStatus - ID_STATUS_OFFLINE] > aiStatusPriority[pRightEntry->iStatus - ID_STATUS_OFFLINE]);
 		else
-			return mir_tstrcmpi(pLeftEntry->strName.c_str(),pRightEntry->strName.c_str())<0;
+			return mir_wstrcmpi(pLeftEntry->strName.c_str(),pRightEntry->strName.c_str())<0;
 	}
 	else if(pLeft->GetType() == ITEM && pRight->GetType() == CONTAINER)
 		return false;
@@ -520,7 +520,7 @@ bool CContactList::CompareEntries(CListEntry<CContactListEntry*,CContactListGrou
 		else if (pGroup1->iEvents && pGroup2->iEvents)
 			return (pGroup1->iEvents > pGroup2->iEvents);
 		else
-			return mir_tstrcmpi(pGroup1->strName.c_str(),pGroup2->strName.c_str())<0;
+			return mir_wstrcmpi(pGroup1->strName.c_str(),pGroup2->strName.c_str())<0;
 	}
 
 	return false;
diff --git a/plugins/MirandaG15/src/LCDFramework/CLCDGfx.cpp b/plugins/MirandaG15/src/LCDFramework/CLCDGfx.cpp
index 7d874a7a33..f7bed6776c 100644
--- a/plugins/MirandaG15/src/LCDFramework/CLCDGfx.cpp
+++ b/plugins/MirandaG15/src/LCDFramework/CLCDGfx.cpp
@@ -302,7 +302,7 @@ void CLCDGfx::DrawText(int nX, int nY, LPCTSTR sText)
 	dtp.cbSize = sizeof(DRAWTEXTPARAMS);
 
 	RECT rBounds = {nX,nY,GetClipWidth(),GetClipHeight()};
-	DrawTextEx(m_hDC, (LPTSTR)sText, (int)mir_tstrlen(sText), &rBounds, (DT_LEFT | DT_NOPREFIX), &dtp);
+	DrawTextEx(m_hDC, (LPTSTR)sText, (int)mir_wstrlen(sText), &rBounds, (DT_LEFT | DT_NOPREFIX), &dtp);
 
 	// restores
 	SetMapMode(m_hDC, nOldMapMode);
-- 
cgit v1.2.3