diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-12-30 08:55:18 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-12-30 08:55:18 +0000 |
commit | 3d805c9681df6ed8fd6fb1e6eef7572d554bed66 (patch) | |
tree | 53fd8d276a7f34e941647576619976cf83004129 /protocols/VKontakte/src/misc.cpp | |
parent | 5d7cde73d5a03ebaae4390a392d73aa7fa5a45c0 (diff) |
VKontakte: cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@11678 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 05d2574408..4bf8dfaf83 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -409,7 +409,7 @@ void CVkProto::GrabCookies(NETLIBHTTPREQUEST *nhr) if (bFirstToken) {
int iStart2 = 0;
szCookieName = szToken.Tokenize("=", iStart2);
- szCookieVal = szToken.Tokenize("=", iStart2);
+ szCookieVal = szToken.Tokenize("=", iStart2);
}
else if (!strncmp(szToken, "domain=", 7))
szDomain = szToken.Mid(7);
@@ -472,7 +472,7 @@ void CVkProto::DBAddAuthRequest(const MCONTACT hContact) *((PDWORD)pCurBlob) = 0;
pCurBlob += sizeof(DWORD); // uin(DWORD) = 0 (DWORD)
- *((PDWORD)pCurBlob) = (DWORD)hContact;
+ *((PDWORD)pCurBlob) = (DWORD)hContact;
pCurBlob += sizeof(DWORD); // hContact(DWORD)
strcpy((char*)pCurBlob, szNick);
@@ -635,7 +635,7 @@ char* CVkProto::GetStickerId(const char* Msg, int &stickerid) return NULL;
}
-int CVkProto::OnDbSettingChanged(WPARAM hContact, LPARAM lParam)
+int CVkProto::OnDbSettingChanged(WPARAM hContact, LPARAM lParam)
{
DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING*)lParam;
if (hContact != NULL)
@@ -723,7 +723,7 @@ CMString CVkProto::GetVkPhotoItem(JSONNODE *pPhoto) }
}
- switch (m_iIMGBBCSupport){
+ switch (m_iIMGBBCSupport) {
case imgNo:
ptszPreviewLink = NULL;
break;
@@ -777,7 +777,7 @@ CMString CVkProto::SetBBCString(TCHAR *tszString, VKBBCType bbcType, TCHAR *tszA TCHAR *ptszFormat = NULL;
for (int i = 0; i < SIZEOF(bbcItem); i++)
- if (bbcItem[i].vkBBCType == bbcType && bbcItem[i].vkBBCSettings == m_iBBCForNews){
+ if (bbcItem[i].vkBBCType == bbcType && bbcItem[i].vkBBCSettings == m_iBBCForNews) {
ptszFormat = bbcItem[i].ptszTempate;
break;
}
@@ -799,7 +799,7 @@ CMString CVkProto::SetBBCString(TCHAR *tszString, VKBBCType bbcType, TCHAR *tszA CMString& CVkProto::ClearFormatNick(CMString& tszText)
{
int iNameEnd = tszText.Find(_T("],")), iNameBeg = tszText.Find(_T("|"));
- if (iNameEnd != -1 && iNameBeg != -1 && iNameBeg < iNameEnd){
+ if (iNameEnd != -1 && iNameBeg != -1 && iNameBeg < iNameEnd) {
CMString tszName = tszText.Mid(iNameBeg + 1, iNameEnd - iNameBeg - 1);
CMString tszBody = tszText.Mid(iNameEnd + 2);
if (!tszName.IsEmpty() && !tszBody.IsEmpty())
@@ -894,7 +894,7 @@ CMString CVkProto::GetAttachmentDescr(JSONNODE *pAttachments) res.AppendFormat(_T("[img]%s[/img]"), ptszLink);
}
}
- else if (!mir_tstrcmp(ptszType, _T("link"))){
+ else if (!mir_tstrcmp(ptszType, _T("link"))) {
JSONNODE *pLink = json_get(pAttach, "link");
if (pLink == NULL)
continue;
|