diff options
author | Nils Wallménius <nils@rockbox.org> | 2009-08-20 16:47:44 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2009-08-20 16:47:44 +0000 |
commit | 3200d04d75c5e7556ed8880b155533e881a4d1e1 (patch) | |
tree | 188e2c9525b25cb8922a14766e51ab02bad3f831 /apps/plugins/shortcuts | |
parent | 0a1728444882cdbc6a0c815bd88464de25ad94e9 (diff) | |
download | rockbox-3200d04d75c5e7556ed8880b155533e881a4d1e1.tar.gz rockbox-3200d04d75c5e7556ed8880b155533e881a4d1e1.zip |
Make the formatter functions used by the settings return a pointer to avoid usless copying of lang strings, this brought with it a long chain of const correctness and a few random cleanups
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22440 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/shortcuts')
-rw-r--r-- | apps/plugins/shortcuts/shortcuts_view.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/shortcuts/shortcuts_view.c b/apps/plugins/shortcuts/shortcuts_view.c index f6a26a519d..b964968737 100644 --- a/apps/plugins/shortcuts/shortcuts_view.c +++ b/apps/plugins/shortcuts/shortcuts_view.c | |||
@@ -40,8 +40,8 @@ static bool usb_connected = false; | |||
40 | enum sc_list_action_type draw_sc_list(struct gui_synclist *gui_sc); | 40 | enum sc_list_action_type draw_sc_list(struct gui_synclist *gui_sc); |
41 | 41 | ||
42 | /* Will be passed sc_file* as data */ | 42 | /* Will be passed sc_file* as data */ |
43 | char* build_sc_list(int selected_item, void *data, | 43 | static const char* build_sc_list(int selected_item, void *data, |
44 | char *buffer, size_t buffer_len); | 44 | char *buffer, size_t buffer_len); |
45 | 45 | ||
46 | /* Returns true iff we should leave the main loop */ | 46 | /* Returns true iff we should leave the main loop */ |
47 | bool list_sc(void); | 47 | bool list_sc(void); |
@@ -89,8 +89,8 @@ enum sc_list_action_type draw_sc_list(struct gui_synclist *gui_sc) | |||
89 | } | 89 | } |
90 | 90 | ||
91 | 91 | ||
92 | char* build_sc_list(int selected_item, void *data, | 92 | static const char* build_sc_list(int selected_item, void *data, |
93 | char *buffer, size_t buffer_len) | 93 | char *buffer, size_t buffer_len) |
94 | { | 94 | { |
95 | sc_file_t *file = (sc_file_t*)data; | 95 | sc_file_t *file = (sc_file_t*)data; |
96 | 96 | ||