From 5b0506e9de356f915138711b62f3e414a8c1b2bb Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sun, 18 Sep 2022 20:07:12 +0100 Subject: gui: Constify list title text Use const char* pointers for list titles. Only one debug menu actually modifies the title, and in that case it's legal to cast away const because the title points to a known mutable buffer on the stack. Change-Id: Idb8ab307b9a6ec23a93d8420c5e19fafd9f59c30 --- apps/plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index a487f64168..e35909f409 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -387,7 +387,7 @@ struct plugin_api { void (*gui_synclist_limit_scroll)(struct gui_synclist * lists, bool scroll); bool (*gui_synclist_do_button)(struct gui_synclist * lists, int *action, enum list_wrap wrap); - void (*gui_synclist_set_title)(struct gui_synclist *lists, char* title, + void (*gui_synclist_set_title)(struct gui_synclist *lists, const char* title, enum themable_icons icon); enum yesno_res (*gui_syncyesno_run)(const struct text_message * main_message, const struct text_message * yes_message, -- cgit v1.2.3