diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-04-03 21:57:47 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-04-03 21:57:47 +0000 |
commit | 2b82b6fe83df09a31a60288871227b3ea97d39a5 (patch) | |
tree | 5cc35c182e7e5be1db2007e4886fa10d19075a21 /protocols/SkypeWeb/src/skype_contacts.cpp | |
parent | 035b5186bba8c0cab7d349f849c5c1db7cad7e39 (diff) |
SkypeWeb: cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@12597 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_contacts.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_contacts.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/protocols/SkypeWeb/src/skype_contacts.cpp b/protocols/SkypeWeb/src/skype_contacts.cpp index 98563bcda5..a9e7db7e97 100644 --- a/protocols/SkypeWeb/src/skype_contacts.cpp +++ b/protocols/SkypeWeb/src/skype_contacts.cpp @@ -19,9 +19,7 @@ void CSkypeProto::SetContactStatus(MCONTACT hContact, WORD status) void CSkypeProto::SetAllContactsStatus(WORD status)
{
for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName))
- {
SetContactStatus(hContact, status);
- }
}
MCONTACT CSkypeProto::GetContactFromAuthEvent(MEVENT hEvent)
@@ -50,9 +48,7 @@ MCONTACT CSkypeProto::GetContact(const char *skypename) {
ptrA cSkypename(getStringA(hContact, SKYPE_SETTINGS_ID));
if (mir_strcmpi(skypename, cSkypename) == 0)
- {
break;
- }
}
return hContact;
}
@@ -78,9 +74,7 @@ MCONTACT CSkypeProto::AddContact(const char *skypename, bool isTemporary) setByte(hContact, "Grant", 1);
if (isTemporary)
- {
db_set_b(hContact, "CList", "NotOnList", 1);
- }
}
return hContact;
}
@@ -207,10 +201,8 @@ void CSkypeProto::LoadContactList(const NETLIBHTTPREQUEST *response) delSetting(hContact, "Grant");
}
else
- {
setByte(hContact, "Grant", 1);
- }
-
+
node = json_get(item, "blocked");
setByte(hContact, "IsBlocked", json_as_bool(node));
@@ -225,9 +217,7 @@ void CSkypeProto::LoadContactList(const NETLIBHTTPREQUEST *response) PushRequest(new GetContactsInfoRequest(token, skypenames), &CSkypeProto::LoadContactsInfo);
for (size_t i = 0; i < skypenames.getCount(); i++)
- {
mir_free(skypenames[i]);
- }
skypenames.destroy();
}
PushRequest(new GetContactsAuthRequest(token), &CSkypeProto::LoadContactsAuth);
|