mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Make widget.ops point to const.
This commit is contained in:
parent
3756bec9e0
commit
d40cccef0f
@ -344,7 +344,7 @@ static void
|
||||
dialog_ev_kbd(struct dialog_data *dlg_data)
|
||||
{
|
||||
struct widget_data *widget_data = selected_widget(dlg_data);
|
||||
struct widget_ops *ops = widget_data->widget->ops;
|
||||
const struct widget_ops *ops = widget_data->widget->ops;
|
||||
/* XXX: KEYMAP_EDIT ? --pasky */
|
||||
enum menu_action action_id;
|
||||
struct term_event *ev = dlg_data->term_event;
|
||||
|
@ -30,7 +30,7 @@ struct widget_ops {
|
||||
};
|
||||
|
||||
struct widget {
|
||||
struct widget_ops *ops;
|
||||
const struct widget_ops *ops;
|
||||
|
||||
unsigned char *text;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user