From 3a548ab7449b7c6f444eb7e626636914926380fa Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Fri, 26 Jun 2015 03:39:10 +0000 Subject: VKontakte: simplify code git-svn-id: http://svn.miranda-ng.org/main/trunk@14390 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/misc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/VKontakte/src/misc.cpp') diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 9646b486d2..f68d076c5e 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -233,7 +233,7 @@ void CVkProto::SetAllContactStatuses(int iStatus) for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) { if (isChatRoom(hContact)) SetChatStatus(hContact, iStatus); - else if (getWord(hContact, "Status", 0) != iStatus) + else if (getWord(hContact, "Status") != iStatus) setWord(hContact, "Status", iStatus); if (iStatus == ID_STATUS_OFFLINE) { @@ -262,7 +262,7 @@ MCONTACT CVkProto::FindUser(LONG dwUserid, bool bCreate) if (!bCreate) return NULL; - MCONTACT hNewContact = (MCONTACT)CallService(MS_DB_CONTACT_ADD, 0, 0); + MCONTACT hNewContact = (MCONTACT)CallService(MS_DB_CONTACT_ADD); Proto_AddToContact(hNewContact, m_szModuleName); setDword(hNewContact, "ID", dwUserid); db_set_ts(hNewContact, "CList", "Group", m_defaultGroup); @@ -708,7 +708,7 @@ void CVkProto::ContactTypingThread(void *p) MCONTACT hContact = (MCONTACT)p; CallService(MS_PROTO_CONTACTISTYPING, hContact, 5); Sleep(5500); - CallService(MS_PROTO_CONTACTISTYPING, hContact, 0); + CallService(MS_PROTO_CONTACTISTYPING, hContact); if (!ServiceExists("MessageState/DummyService")) { Sleep(1500); @@ -729,7 +729,7 @@ int CVkProto::OnProcessSrmmEvent(WPARAM, LPARAM lParam) void CVkProto::SetSrmmReadStatus(MCONTACT hContact) { - time_t time = getDword(hContact, "LastMsgReadTime", 0); + time_t time = getDword(hContact, "LastMsgReadTime"); if (!time) return; -- cgit v1.2.3