diff options
author | George Hazan <george.hazan@gmail.com> | 2013-05-16 15:19:22 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-05-16 15:19:22 +0000 |
commit | 011137bd4d5ef75cfb832f82a0cb47b06124a022 (patch) | |
tree | b074d2b22acbc4eac3c39e01c4842a5f908c2c3f /plugins/YARelay/src | |
parent | fa02e76e325bfec6ca2737fcb086cab4e3de3cba (diff) |
words of wisdom were well received
now the shortened types are called ptrA, ptrT & ptrW respectively
git-svn-id: http://svn.miranda-ng.org/main/trunk@4682 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YARelay/src')
-rw-r--r-- | plugins/YARelay/src/main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/YARelay/src/main.cpp b/plugins/YARelay/src/main.cpp index 2a37b58c81..b6e479e9db 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<char> szUtfMsg;
- MCBuf szTemplate( mir_utf8encodeT(tszForwardTemplate));
+ ptrA 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( MCBuf(mir_utf8encodeT(pcli->pfnGetContactDisplayName(hContact, 0))));
+ szUtfMsg.append( ptrA(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( MCBuf(mir_utf8encodeT(buf)));
+ szUtfMsg.append( ptrA(mir_utf8encodeT(buf)));
break;
case 't':
case 'T':
_tcsftime(buf, 10, _T("%H:%M"), tm_time);
- szUtfMsg.append( MCBuf(mir_utf8encodeT(buf)));
+ szUtfMsg.append( ptrA(mir_utf8encodeT(buf)));
break;
case 'd':
case 'D':
_tcsftime(buf, 12, _T("%d/%m/%Y"), tm_time);
- szUtfMsg.append( MCBuf(mir_utf8encodeT(buf)));
+ szUtfMsg.append( ptrA(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( MCBuf(mir_utf8encode((char*)dbei.pBlob)));
+ szUtfMsg.append( ptrA(mir_utf8encode((char*)dbei.pBlob)));
break;
case '%':
|