From e2c2a1f5a84c6c9b705dc85c6a2dd1f97edd57e4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 22 May 2015 16:04:17 +0000 Subject: T2Utf - handy replacement for ptrA git-svn-id: http://svn.miranda-ng.org/main/trunk@13758 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YARelay/src/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/YARelay') diff --git a/plugins/YARelay/src/main.cpp b/plugins/YARelay/src/main.cpp index d6f3d80d44..a87eafb9a6 100644 --- a/plugins/YARelay/src/main.cpp +++ b/plugins/YARelay/src/main.cpp @@ -134,7 +134,7 @@ static int MessageEventAdded(WPARAM hContact, LPARAM hDBEvent) // build a message Buffer szUtfMsg; - ptrA szTemplate( mir_utf8encodeT(tszForwardTemplate)); + T2Utf szTemplate(tszForwardTemplate); for (char *p = szTemplate; *p; p++) { if (*p != '%') { szUtfMsg.append(*p); @@ -145,7 +145,7 @@ static int MessageEventAdded(WPARAM hContact, LPARAM hDBEvent) switch(*++p) { case 'u': case 'U': - szUtfMsg.append( ptrA(mir_utf8encodeT(pcli->pfnGetContactDisplayName(hContact, 0)))); + szUtfMsg.append(T2Utf(pcli->pfnGetContactDisplayName(hContact, 0))); break; case 'i': @@ -166,19 +166,19 @@ static int MessageEventAdded(WPARAM hContact, LPARAM hDBEvent) } else mir_sntprintf(buf, SIZEOF(buf), _T("%p"), hContact); } - szUtfMsg.append( ptrA(mir_utf8encodeT(buf))); + szUtfMsg.append(T2Utf(buf)); break; case 't': case 'T': _tcsftime(buf, 10, _T("%H:%M"), tm_time); - szUtfMsg.append( ptrA(mir_utf8encodeT(buf))); + szUtfMsg.append(T2Utf(buf)); break; case 'd': case 'D': _tcsftime(buf, 12, _T("%d/%m/%Y"), tm_time); - szUtfMsg.append( ptrA(mir_utf8encodeT(buf))); + szUtfMsg.append(T2Utf(buf)); break; case 'm': @@ -186,7 +186,7 @@ static int MessageEventAdded(WPARAM hContact, LPARAM hDBEvent) if (dbei.flags & DBEF_UTF) szUtfMsg.append((char*)dbei.pBlob, dbei.cbBlob); else - szUtfMsg.append( ptrA(mir_utf8encode((char*)dbei.pBlob))); + szUtfMsg.append(ptrA(mir_utf8encode((char*)dbei.pBlob))); break; case '%': -- cgit v1.2.3