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_proto.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_proto.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp index dbdd478119..624f14c464 100644 --- a/protocols/VKontakte/src/vk_proto.cpp +++ b/protocols/VKontakte/src/vk_proto.cpp @@ -310,7 +310,7 @@ void CVkProto::InitPopups(void) POPUPCLASS ppc = { sizeof(ppc) };
ppc.flags = PCF_TCHAR;
- mir_sntprintf(desc, SIZEOF(desc), L"%s %s", m_tszUserName, TranslateT("Errors"));
+ mir_sntprintf(desc, SIZEOF(desc), _T("%s %s"), m_tszUserName, TranslateT("Errors"));
mir_snprintf(name, SIZEOF(name), "%s_%s", m_szModuleName, "Error");
ppc.ptszDescription = desc;
ppc.pszName = name;
@@ -320,7 +320,7 @@ void CVkProto::InitPopups(void) ppc.iSeconds = 60;
m_hPopupClassError = Popup_RegisterClass(&ppc);
- mir_sntprintf(desc, SIZEOF(desc), L"%s %s", m_tszUserName, TranslateT("Notification"));
+ mir_sntprintf(desc, SIZEOF(desc), _T("%s %s"), m_tszUserName, TranslateT("Notification"));
mir_snprintf(name, SIZEOF(name), "%s_%s", m_szModuleName, "Notification");
ppc.ptszDescription = desc;
ppc.pszName = name;
@@ -427,7 +427,7 @@ int CVkProto::SendMsg(MCONTACT hContact, int flags, const char *msg) if (flags & PREF_UTF)
szMsg = mir_strdup(msg);
else if (flags & PREF_UNICODE)
- szMsg = mir_utf8encodeW((wchar_t*)&msg[strlen(msg)+1]);
+ szMsg = mir_utf8encodeW((wchar_t*)&msg[mir_strlen(msg)+1]);
else
szMsg = mir_utf8encode(msg);
|