diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-11-30 14:50:18 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-17 13:36:38 +0000 |
commit | 701e262d3d622898279167ba909da631ac460bc1 (patch) | |
tree | 763be2f80bd12dde2b6c743a023ad331959d891b /apps/plugins/lib/playback_control.c | |
parent | 767ddef550ec193c087064291b78d0e1db5e8fb0 (diff) | |
download | rockbox-701e262d3d622898279167ba909da631ac460bc1.tar.gz rockbox-701e262d3d622898279167ba909da631ac460bc1.zip |
settings: Remove setting ID return from find_setting()
Now that all users have replaced setting IDs with direct pointers,
find_setting() and friends don't need to return an ID value.
Change-Id: I8c5c31bb68d3bca5350d43538335265a55fd5517
Diffstat (limited to 'apps/plugins/lib/playback_control.c')
-rw-r--r-- | apps/plugins/lib/playback_control.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/lib/playback_control.c b/apps/plugins/lib/playback_control.c index a7f5b8baff..3e97916400 100644 --- a/apps/plugins/lib/playback_control.c +++ b/apps/plugins/lib/playback_control.c | |||
@@ -65,21 +65,21 @@ static bool nexttrack(void) | |||
65 | static bool volume(void) | 65 | static bool volume(void) |
66 | { | 66 | { |
67 | const struct settings_list* vol = | 67 | const struct settings_list* vol = |
68 | rb->find_setting(&rb->global_settings->volume, NULL); | 68 | rb->find_setting(&rb->global_settings->volume); |
69 | return rb->option_screen((struct settings_list*)vol, parentvp, false, "Volume"); | 69 | return rb->option_screen((struct settings_list*)vol, parentvp, false, "Volume"); |
70 | } | 70 | } |
71 | 71 | ||
72 | static bool shuffle(void) | 72 | static bool shuffle(void) |
73 | { | 73 | { |
74 | const struct settings_list* shuffle = | 74 | const struct settings_list* shuffle = |
75 | rb->find_setting(&rb->global_settings->playlist_shuffle, NULL); | 75 | rb->find_setting(&rb->global_settings->playlist_shuffle); |
76 | return rb->option_screen((struct settings_list*)shuffle, parentvp, false, "Shuffle"); | 76 | return rb->option_screen((struct settings_list*)shuffle, parentvp, false, "Shuffle"); |
77 | } | 77 | } |
78 | 78 | ||
79 | static bool repeat_mode(void) | 79 | static bool repeat_mode(void) |
80 | { | 80 | { |
81 | const struct settings_list* repeat = | 81 | const struct settings_list* repeat = |
82 | rb->find_setting(&rb->global_settings->repeat_mode, NULL); | 82 | rb->find_setting(&rb->global_settings->repeat_mode); |
83 | int old_repeat = rb->global_settings->repeat_mode; | 83 | int old_repeat = rb->global_settings->repeat_mode; |
84 | 84 | ||
85 | rb->option_screen((struct settings_list*)repeat, parentvp, false, "Repeat"); | 85 | rb->option_screen((struct settings_list*)repeat, parentvp, false, "Repeat"); |