From aa84a99caf7abd4c1623e02d13f99efb1cd5895d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Sun, 11 Oct 2009 09:09:20 +0000 Subject: [PATCH] Const correctness git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23093 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.c | 2 +- apps/gui/list.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/gui/list.c b/apps/gui/list.c index 2c7b7c9405..ccd8337c5a 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -418,7 +418,7 @@ void gui_list_screen_scroll_out_of_view(bool enable) * both the title and icon. Use NOICON if there is no icon. */ void gui_synclist_set_title(struct gui_synclist * gui_list, - char * title, enum themable_icons icon) + const char * title, enum themable_icons icon) { gui_list->title = title; gui_list->title_icon = icon; diff --git a/apps/gui/list.h b/apps/gui/list.h index ed61889083..7865dddc08 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h @@ -118,7 +118,7 @@ struct gui_synclist /* The data that will be passed to the callback function YOU implement */ void * data; /* The optional title, set to NULL for none */ - char * title; + const char * title; /* Optional title icon */ enum themable_icons title_icon; bool show_selection_marker; /* set to true by default */ @@ -166,7 +166,7 @@ extern void gui_synclist_add_item(struct gui_synclist * lists); extern void gui_synclist_del_item(struct gui_synclist * lists); extern void gui_synclist_limit_scroll(struct gui_synclist * lists, bool scroll); extern void gui_synclist_flash(struct gui_synclist * lists); -extern void gui_synclist_set_title(struct gui_synclist * lists, char * title, +extern void gui_synclist_set_title(struct gui_synclist * lists, const char * title, enum themable_icons icon); extern void gui_synclist_hide_selection_marker(struct gui_synclist *lists, bool hide);