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
This commit is contained in:
Aidan MacDonald 2022-09-18 20:07:12 +01:00
parent 420fb1163c
commit 5b0506e9de
8 changed files with 13 additions and 12 deletions

View file

@ -234,7 +234,7 @@ static void printcell_listdraw_fn(struct list_putlineinfo_t *list_info)
bool show_cursor = list_info->show_cursor;
bool have_icons = list_info->have_icons;
struct line_desc *linedes = list_info->linedes;
char *dsp_text = list_info->dsp_text;
const char *dsp_text = list_info->dsp_text;
struct viewport *vp = list_info->vp;
int line = list_info->line;