From c5de45b42456d1ed5250e477e70d9ea4001f4441 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 25 Jun 2015 19:08:15 +0000 Subject: - Set wparam and lParam to 0 as default arg in CallService and others, to simplify some code git-svn-id: http://svn.miranda-ng.org/main/trunk@14384 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/contacts.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/FacebookRM/src/contacts.cpp') diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp index 184713d917..7083a918ee 100644 --- a/protocols/FacebookRM/src/contacts.cpp +++ b/protocols/FacebookRM/src/contacts.cpp @@ -86,7 +86,7 @@ MCONTACT FacebookProto::ChatIDToHContact(const std::string &chat_id) auto it = facy.chat_id_to_hcontact.find(chat_id); if (it != facy.chat_id_to_hcontact.end()) { // Check if contact is still valid - if (CallService(MS_DB_CONTACT_IS, (WPARAM)it->second, 0) == 1) + if (CallService(MS_DB_CONTACT_IS, (WPARAM)it->second) == 1) return it->second; else facy.chat_id_to_hcontact.erase(it); @@ -118,7 +118,7 @@ MCONTACT FacebookProto::ContactIDToHContact(const std::string &user_id) std::map::iterator it = facy.user_id_to_hcontact.find(user_id); if (it != facy.user_id_to_hcontact.end()) { // Check if contact is still valid - if (CallService(MS_DB_CONTACT_IS, (WPARAM)it->second, 0) == 1) + if (CallService(MS_DB_CONTACT_IS, (WPARAM)it->second) == 1) return it->second; else facy.user_id_to_hcontact.erase(it); @@ -350,10 +350,10 @@ MCONTACT FacebookProto::AddToContactList(facebook_user* fbu, ContactType type, b } // Try to make a new contact - MCONTACT hContact = (MCONTACT)CallService(MS_DB_CONTACT_ADD, 0, 0); + MCONTACT hContact = (MCONTACT)CallService(MS_DB_CONTACT_ADD); if (hContact && Proto_AddToContact(hContact, m_szModuleName) != 0) { - CallService(MS_DB_CONTACT_DELETE, hContact, 0); + CallService(MS_DB_CONTACT_DELETE, hContact); hContact = NULL; } @@ -596,7 +596,7 @@ void FacebookProto::IgnoreFriendshipRequest(void *data) // Delete this contact, if he's temporary if (db_get_b(hContact, "CList", "NotOnList", 0)) - CallService(MS_DB_CONTACT_DELETE, hContact, 0); + CallService(MS_DB_CONTACT_DELETE, hContact); } else facy.client_notify(TranslateT("Error occurred when ignoring friendship request.")); -- cgit v1.2.3