From 6c52fa139c5ad8f78ed4fdb306a6074228dbf4c9 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Wed, 30 Nov 2022 15:17:54 +0000 Subject: Remove browse_context_init() Prefer to use designated initializers to avoid having to specify unneeded parameters. Non-initialized members are zero-initialized by the compiler. Change-Id: Ia6a03c45cb3ef0b30f458d7d0ae1604a350c737c --- apps/menus/theme_menu.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'apps/menus/theme_menu.c') diff --git a/apps/menus/theme_menu.c b/apps/menus/theme_menu.c index 60a2a27ef4..1b501452d0 100644 --- a/apps/menus/theme_menu.c +++ b/apps/menus/theme_menu.c @@ -249,9 +249,12 @@ int browse_folder(void *param) char selected[MAX_FILENAME+10]; const struct browse_folder_info *info = (const struct browse_folder_info*)param; - struct browse_context browse; - browse_context_init(&browse, info->show_options, 0, - NULL, NOICON, info->dir, NULL); + + struct browse_context browse = { + .dirfilter = info->show_options, + .icon = Icon_NOICON, + .root = info->dir, + }; /* if we are in a special settings folder, center the current setting */ switch(info->show_options) -- cgit v1.2.3