Mercurial > emacs
changeset 56889:ca08ff660c73
(add_menu_item): Remove unused variable `i'. Don't
let separator items destroy refence constants of other menu items.
author | Steven Tamm <steventamm@mac.com> |
---|---|
date | Thu, 02 Sep 2004 17:00:36 +0000 |
parents | a81166121d93 |
children | e8bafb4b47db |
files | src/macmenu.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/macmenu.c Thu Sep 02 17:00:12 2004 +0000 +++ b/src/macmenu.c Thu Sep 02 17:00:36 2004 +0000 @@ -2240,7 +2240,7 @@ int force_disable) { Str255 item_name; - int pos, i; + int pos; if (name_is_separator (wv->name)) AppendMenu (menu, "\p-"); @@ -2296,10 +2296,10 @@ else SetItemMark (menu, pos, noMark); } + + SetMenuItemRefCon (menu, pos, (UInt32) wv->call_data); } - SetMenuItemRefCon (menu, pos, (UInt32) wv->call_data); - if (submenu != NULL) SetMenuItemHierarchicalID (menu, pos, submenu); }