From 2e4abd268c71f15bcf73c49a5005f128ffd8ee96 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 16 May 2013 15:08:49 +0000 Subject: shortened typedefs for string buffers: MCBuf -> mir_ptr MTBuf -> mir_ptr MWBuf -> mir_ptr git-svn-id: http://svn.miranda-ng.org/main/trunk@4680 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 8613d49304..2a37b58c81 100644 --- a/plugins/YARelay/src/main.cpp +++ b/plugins/YARelay/src/main.cpp @@ -135,7 +135,7 @@ static int MessageEventAdded(WPARAM wParam, LPARAM lParam) // build a message Buffer szUtfMsg; - mir_ptr szTemplate( mir_utf8encodeT(tszForwardTemplate)); + MCBuf szTemplate( mir_utf8encodeT(tszForwardTemplate)); for (char *p = szTemplate; *p; p++) { if (*p != '%') { szUtfMsg.append(*p); @@ -146,7 +146,7 @@ static int MessageEventAdded(WPARAM wParam, LPARAM lParam) switch(*++p) { case 'u': case 'U': - szUtfMsg.append( mir_ptr(mir_utf8encodeT(pcli->pfnGetContactDisplayName(hContact, 0)))); + szUtfMsg.append( MCBuf(mir_utf8encodeT(pcli->pfnGetContactDisplayName(hContact, 0)))); break; case 'i': @@ -167,19 +167,19 @@ static int MessageEventAdded(WPARAM wParam, LPARAM lParam) } else mir_sntprintf(buf, SIZEOF(buf), _T("%p"), hContact); } - szUtfMsg.append( mir_ptr(mir_utf8encodeT(buf))); + szUtfMsg.append( MCBuf(mir_utf8encodeT(buf))); break; case 't': case 'T': _tcsftime(buf, 10, _T("%H:%M"), tm_time); - szUtfMsg.append( mir_ptr(mir_utf8encodeT(buf))); + szUtfMsg.append( MCBuf(mir_utf8encodeT(buf))); break; case 'd': case 'D': _tcsftime(buf, 12, _T("%d/%m/%Y"), tm_time); - szUtfMsg.append( mir_ptr(mir_utf8encodeT(buf))); + szUtfMsg.append( MCBuf(mir_utf8encodeT(buf))); break; case 'm': @@ -187,7 +187,7 @@ static int MessageEventAdded(WPARAM wParam, LPARAM lParam) if (dbei.flags & DBEF_UTF) szUtfMsg.append((char*)dbei.pBlob, dbei.cbBlob); else - szUtfMsg.append( mir_ptr(mir_utf8encode((char*)dbei.pBlob))); + szUtfMsg.append( MCBuf(mir_utf8encode((char*)dbei.pBlob))); break; case '%': -- cgit v1.2.3