diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-12-01 04:22:16 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-12-01 04:22:16 +0000 |
commit | 97e0ada5c34d6e7eba1cf47a8d8ac029197be6de (patch) | |
tree | ffb2c30b2086690b3b0190c33ec1a5c386ee8ad9 /protocols/VKontakte/src/vk_chats.cpp | |
parent | 777da6a8fa210d027e5fd47919a8d7c18b9c5613 (diff) |
VKontakte:
replace all L-string to _T-string
replace strlen -> mir_strlen
code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@11187 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_chats.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_chats.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp index 01ffaf8ce8..575feedb72 100644 --- a/protocols/VKontakte/src/vk_chats.cpp +++ b/protocols/VKontakte/src/vk_chats.cpp @@ -28,7 +28,7 @@ static LPCTSTR sttStatuses[] = { LPGENT("Participants"), LPGENT("Owners") }; CVkChatInfo* CVkProto::AppendChat(int id, JSONNODE *pDlg)
{
- debugLog(L"CVkProto::AppendChat");
+ debugLog(_T("CVkProto::AppendChat"));
if (id == 0)
return NULL;
@@ -49,7 +49,7 @@ CVkChatInfo* CVkProto::AppendChat(int id, JSONNODE *pDlg) }
CMString sid;
- sid.Format(L"%S_%d", m_szModuleName, id);
+ sid.Format(_T("%S_%d"), m_szModuleName, id);
c->m_tszId = mir_tstrdup(sid);
GCSESSION gcw = { sizeof(gcw) };
@@ -292,7 +292,7 @@ void CVkProto::AppendChatMessage(CVkChatInfo *cc, int mid, int uid, int msgTime, gce.time = msgTime;
gce.dwFlags = (bIsHistory) ? GCEF_NOTNOTIFY : GCEF_ADDTOLOG;
gce.ptszNick = cu->m_tszNick ? mir_tstrdup(cu->m_tszNick) : mir_tstrdup(TranslateT("Unknown"));
- gce.ptszText = tszBody.IsEmpty() ? mir_tstrdup(L"...") : mir_tstrdup(tszBody.GetBuffer());
+ gce.ptszText = tszBody.IsEmpty() ? mir_tstrdup(_T("...")) : mir_tstrdup(tszBody.GetBuffer());
CallServiceSync(MS_GC_EVENT, 0, (LPARAM)&gce);
}
|