summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/avatars.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-06-25 19:08:15 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-06-25 19:08:15 +0000
commitc5de45b42456d1ed5250e477e70d9ea4001f4441 (patch)
treef328e4999ddd3fe46c77ce3ee52b7e177067806c /protocols/FacebookRM/src/avatars.cpp
parentc3635f352a1a7a3afe65fe74e3f0fdefdb72e6ae (diff)
- 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
Diffstat (limited to 'protocols/FacebookRM/src/avatars.cpp')
-rw-r--r--protocols/FacebookRM/src/avatars.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/avatars.cpp b/protocols/FacebookRM/src/avatars.cpp
index 15abcdd60f..047f9a29d2 100644
--- a/protocols/FacebookRM/src/avatars.cpp
+++ b/protocols/FacebookRM/src/avatars.cpp
@@ -76,11 +76,11 @@ void FacebookProto::CheckAvatarChange(MCONTACT hContact, const std::string &imag
if (!hContact) {
PROTO_AVATAR_INFORMATION ai = { 0 };
if (GetAvatarInfo(update_required ? GAIF_FORCE : 0, (LPARAM)&ai) != GAIR_WAITFOR)
- CallService(MS_AV_REPORTMYAVATARCHANGED, (WPARAM)m_szModuleName, 0);
+ CallService(MS_AV_REPORTMYAVATARCHANGED, (WPARAM)m_szModuleName);
}
else if (update_required) {
db_set_b(hContact, "ContactPhoto", "NeedUpdate", 1);
- ProtoBroadcastAck(hContact, ACKTYPE_AVATAR, ACKRESULT_STATUS, NULL, 0);
+ ProtoBroadcastAck(hContact, ACKTYPE_AVATAR, ACKRESULT_STATUS, 0);
}
}
@@ -110,9 +110,9 @@ void FacebookProto::UpdateAvatarWorker(void *)
bool success = facy.save_url(url + params, ai.filename, nlc);
if (ai.hContact)
- ProtoBroadcastAck(ai.hContact, ACKTYPE_AVATAR, success ? ACKRESULT_SUCCESS : ACKRESULT_FAILED, (HANDLE)&ai, 0);
+ ProtoBroadcastAck(ai.hContact, ACKTYPE_AVATAR, success ? ACKRESULT_SUCCESS : ACKRESULT_FAILED, (HANDLE)&ai);
else if (success)
- CallService(MS_AV_REPORTMYAVATARCHANGED, (WPARAM)m_szModuleName, 0);
+ CallService(MS_AV_REPORTMYAVATARCHANGED, (WPARAM)m_szModuleName);
}
ScopedLock s(avatar_lock_);