diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-24 13:18:53 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-24 13:18:53 +0000 |
commit | 862116c0d40a7304c458f68c4c725e8a95960588 (patch) | |
tree | 502d5281f70842bbc8ada15d5a03673106b3f61f /src | |
parent | 04ea225a48f0fe836361882cb0f78e7b99ee582f (diff) |
valid first parameter's name of ME_DB_CONTACT_SETTINGCHANGED handlers
git-svn-id: http://svn.miranda-ng.org/main/trunk@8255 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/clist/clc.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/modules/clist/clc.cpp b/src/modules/clist/clc.cpp index 6d0fe461b1..0592f10ffb 100644 --- a/src/modules/clist/clc.cpp +++ b/src/modules/clist/clc.cpp @@ -68,54 +68,54 @@ HMENU fnBuildGroupPopupMenu(ClcGroup* group) /////////////////////////////////////////////////////////////////////////////////////////
// standard CLC services
-static int ClcSettingChanged(WPARAM wParam, LPARAM lParam)
+static int ClcSettingChanged(WPARAM hContact, LPARAM lParam)
{
DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING *) lParam;
- if ((HANDLE)wParam == NULL) {
+ if (hContact == NULL) {
if (!strcmp(cws->szModule, "CListGroups"))
- cli.pfnClcBroadcast(INTM_GROUPSCHANGED, wParam, lParam);
+ cli.pfnClcBroadcast(INTM_GROUPSCHANGED, hContact, lParam);
return 0;
}
if (!strcmp(cws->szModule, "CList")) {
if (!strcmp(cws->szSetting, "MyHandle")) {
- cli.pfnInvalidateDisplayNameCacheEntry(wParam);
- cli.pfnClcBroadcast(INTM_NAMECHANGED, wParam, lParam);
+ cli.pfnInvalidateDisplayNameCacheEntry(hContact);
+ cli.pfnClcBroadcast(INTM_NAMECHANGED, hContact, lParam);
}
else if (!strcmp(cws->szSetting, "Group"))
- cli.pfnClcBroadcast(INTM_GROUPCHANGED, wParam, lParam);
+ cli.pfnClcBroadcast(INTM_GROUPCHANGED, hContact, lParam);
else if (!strcmp(cws->szSetting, "Hidden"))
- cli.pfnClcBroadcast(INTM_HIDDENCHANGED, wParam, lParam);
+ cli.pfnClcBroadcast(INTM_HIDDENCHANGED, hContact, lParam);
else if (!strcmp(cws->szSetting, "NotOnList"))
- cli.pfnClcBroadcast(INTM_NOTONLISTCHANGED, wParam, lParam);
+ cli.pfnClcBroadcast(INTM_NOTONLISTCHANGED, hContact, lParam);
else if (!strcmp(cws->szSetting, "Status"))
cli.pfnClcBroadcast(INTM_INVALIDATE, 0, 0);
else if (!strcmp(cws->szSetting, "NameOrder"))
cli.pfnClcBroadcast(INTM_NAMEORDERCHANGED, 0, 0);
}
else {
- char *szProto = GetContactProto(wParam);
+ char *szProto = GetContactProto(hContact);
if (szProto != NULL) {
if (!strcmp(cws->szModule, "Protocol") && !strcmp(cws->szSetting, "p"))
- cli.pfnClcBroadcast(INTM_PROTOCHANGED, wParam, lParam);
+ cli.pfnClcBroadcast(INTM_PROTOCHANGED, hContact, lParam);
// something is being written to a protocol module
if (!strcmp(szProto, cws->szModule)) {
// was a unique setting key written?
char *id = (char *) CallProtoServiceInt(NULL,szProto, PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0);
if ((INT_PTR)id != CALLSERVICE_NOTFOUND && id != NULL && !strcmp(id, cws->szSetting))
- cli.pfnClcBroadcast(INTM_PROTOCHANGED, wParam, lParam);
+ cli.pfnClcBroadcast(INTM_PROTOCHANGED, hContact, lParam);
}
}
if (szProto == NULL || strcmp(szProto, cws->szModule))
return 0;
if (!strcmp(cws->szSetting, "Nick") || !strcmp(cws->szSetting, "FirstName") || !strcmp(cws->szSetting, "e-mail")
|| !strcmp(cws->szSetting, "LastName") || !strcmp(cws->szSetting, "UIN"))
- cli.pfnClcBroadcast(INTM_NAMECHANGED, wParam, lParam);
+ cli.pfnClcBroadcast(INTM_NAMECHANGED, hContact, lParam);
else if (!strcmp(cws->szSetting, "ApparentMode"))
- cli.pfnClcBroadcast(INTM_APPARENTMODECHANGED, wParam, lParam);
+ cli.pfnClcBroadcast(INTM_APPARENTMODECHANGED, hContact, lParam);
else if (!strcmp(cws->szSetting, "IdleTS"))
- cli.pfnClcBroadcast(INTM_IDLECHANGED, wParam, lParam);
+ cli.pfnClcBroadcast(INTM_IDLECHANGED, hContact, lParam);
}
return 0;
}
|