diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-11 15:39:23 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-11 15:39:23 +0000 |
commit | 2548065ebc5da2a8778cd4f49343b847773ee174 (patch) | |
tree | 642d6b05a1ada0df9803ddf55faa3e709920afef /plugins/SeenPlugin/src/menu.cpp | |
parent | eb031473db62a4fac910f7cb2d13765a753df92d (diff) |
'unreferenced formal parameter' warnings fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@14913 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SeenPlugin/src/menu.cpp')
-rw-r--r-- | plugins/SeenPlugin/src/menu.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/plugins/SeenPlugin/src/menu.cpp b/plugins/SeenPlugin/src/menu.cpp index 9bd1c79b98..5d11fa4c54 100644 --- a/plugins/SeenPlugin/src/menu.cpp +++ b/plugins/SeenPlugin/src/menu.cpp @@ -28,18 +28,15 @@ void InitHistoryDialog(void); /////////////////////////////////////////////////////////////////////////////////////////
// Handles the messages sent by clicking the contact's menu item
-INT_PTR MenuitemClicked(WPARAM wparam, LPARAM)
+INT_PTR MenuitemClicked(WPARAM hContact, LPARAM)
{
- ShowHistory((MCONTACT)wparam, 0);
+ ShowHistory(hContact, 0);
return 0;
}
-int BuildContactMenu(WPARAM wparam, LPARAM)
+int BuildContactMenu(WPARAM hContact, LPARAM)
{
- int id = -1, isetting;
- MCONTACT hContact = (MCONTACT)wparam;
char *szProto = GetContactProto(hContact);
-
if (!IsWatchedProtocol(szProto) || db_get_b(hContact, szProto, "ChatRoom", false) || !db_get_b(NULL, S_MOD, "MenuItem", 1)) {
Menu_ShowItem(hmenuitem, false);
return 0;
@@ -48,9 +45,9 @@ int BuildContactMenu(WPARAM wparam, LPARAM) LPCTSTR ptszName;
ptrT tszStamp(db_get_tsa(NULL, S_MOD, "MenuStamp"));
if (tszStamp != NULL)
- ptszName = ParseString(tszStamp , (MCONTACT)wparam, 0);
+ ptszName = ParseString(tszStamp , hContact);
else
- ptszName = ParseString(DEFAULT_MENUSTAMP, (MCONTACT)wparam, 0);
+ ptszName = ParseString(DEFAULT_MENUSTAMP, hContact);
int flags = 0;
HICON hIcon = NULL;
@@ -61,7 +58,7 @@ int BuildContactMenu(WPARAM wparam, LPARAM) flags |= CMIF_HIDDEN;
}
else if (db_get_b(NULL, S_MOD, "ShowIcon", 1)) {
- isetting = db_get_w(hContact, S_MOD, "StatusTriger", -1);
+ int isetting = db_get_w(hContact, S_MOD, "StatusTriger", -1);
hIcon = Skin_LoadProtoIcon(szProto, isetting | 0x8000);
}
Menu_ModifyItem(hmenuitem, ptszName, hIcon, flags);
|