Skip to content

Commit

Permalink
CXX_BUILD fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Oct 2, 2017
1 parent 9c639ec commit 8d850dc
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion menu/cbs/menu_cbs_left.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ static int action_left_mainmenu(unsigned type, const char *label,
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
size_t selection = menu_navigation_get_selection();
menu_file_list_cbs_t *cbs = selection_buf ?
file_list_get_actiondata_at_offset(selection_buf,
(menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf,
selection) : NULL;

list_info.type = MENU_LIST_HORIZONTAL;
Expand Down
3 changes: 2 additions & 1 deletion menu/cbs/menu_cbs_right.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ static int action_right_goto_tab(void)
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
size_t selection = menu_navigation_get_selection();
menu_file_list_cbs_t *cbs = selection_buf ? file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;
menu_file_list_cbs_t *cbs = selection_buf ? (menu_file_list_cbs_t*)
file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;

list_info.type = MENU_LIST_HORIZONTAL;
list_info.action = MENU_ACTION_RIGHT;
Expand Down
2 changes: 1 addition & 1 deletion menu/cbs/menu_cbs_select.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static int action_select_default(const char *path, const char *label, unsigned t
menu_entry_init(&entry);
menu_entry_get(&entry, 0, idx, NULL, false);

cbs = selection_buf ? file_list_get_actiondata_at_offset(selection_buf, idx) : NULL;
cbs = selection_buf ? (menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, idx) : NULL;

if (!cbs)
{
Expand Down
3 changes: 2 additions & 1 deletion menu/drivers/menu_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ int generic_menu_iterate(void *data, void *userdata, enum menu_action action)
{
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
menu_file_list_cbs_t *cbs = selection_buf ?
file_list_get_actiondata_at_offset(selection_buf, selection)
(menu_file_list_cbs_t*)
file_list_get_actiondata_at_offset(selection_buf, selection)
: NULL;

if (cbs->enum_idx != MSG_UNKNOWN)
Expand Down
2 changes: 1 addition & 1 deletion menu/menu_entries.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ rarch_setting_t *menu_entries_get_setting(uint32_t i)
{
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
menu_file_list_cbs_t *cbs = selection_buf ?
file_list_get_actiondata_at_offset(selection_buf, i) : NULL;
(menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, i) : NULL;

if (!cbs)
return NULL;
Expand Down
2 changes: 1 addition & 1 deletion menu/menu_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ void menu_input_post_iterate(int *ret, unsigned action)
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
size_t selection = menu_navigation_get_selection();
menu_file_list_cbs_t *cbs = selection_buf ?
file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;
(menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;

menu_entry_init(&entry);
menu_entry_get(&entry, 0, selection, NULL, false);
Expand Down
2 changes: 1 addition & 1 deletion menu/menu_setting.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ int menu_setting_set(unsigned type, const char *label,
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
size_t selection = menu_navigation_get_selection();
menu_file_list_cbs_t *cbs = selection_buf ?
file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;
(menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;

if (!cbs)
return 0;
Expand Down
6 changes: 3 additions & 3 deletions menu/widgets/menu_entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ void menu_entry_get(menu_entry_t *entry, size_t stack_idx,
menu_entries_get_at_offset(list, i, &path, &entry_label, &entry->type,
&entry->entry_idx, NULL);

cbs = list ? file_list_get_actiondata_at_offset(list, i) : NULL;
cbs = list ? (menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(list, i) : NULL;

if (cbs)
{
Expand Down Expand Up @@ -418,7 +418,7 @@ int menu_entry_action(menu_entry_t *entry, unsigned i, enum menu_action action)
file_list_t *selection_buf =
menu_entries_get_selection_buf_ptr(0);
menu_file_list_cbs_t *cbs = selection_buf ?
file_list_get_actiondata_at_offset(selection_buf, i) : NULL;
(menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, i) : NULL;

switch (action)
{
Expand Down Expand Up @@ -482,7 +482,7 @@ int menu_entry_action(menu_entry_t *entry, unsigned i, enum menu_action action)
break;
}

cbs = selection_buf ? file_list_get_actiondata_at_offset(selection_buf, i) : NULL;
cbs = selection_buf ? (menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, i) : NULL;

if (menu_entries_ctl(MENU_ENTRIES_CTL_NEEDS_REFRESH, NULL))
{
Expand Down

0 comments on commit 8d850dc

Please sign in to comment.