summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/swlist.cpp
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-07-04 23:13:07 -0400
committer Nathan Woods <npwoods@mess.org>2016-07-04 23:13:07 -0400
commit0d4151e3663e610a48faae575a85e932b7a50e5e (patch)
treee4132743c1588472233a3d6236f10f6945cfbe2e /src/frontend/mame/ui/swlist.cpp
parent411880ac67df7786241a774387a122dda127f42b (diff)
Changed a number of file manager related menus to have their outputs be by reference than pointer, and tightened up typecasts in menu_select_rw
Diffstat (limited to 'src/frontend/mame/ui/swlist.cpp')
-rw-r--r--src/frontend/mame/ui/swlist.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/mame/ui/swlist.cpp b/src/frontend/mame/ui/swlist.cpp
index bf1e34df10f..e26fc754687 100644
--- a/src/frontend/mame/ui/swlist.cpp
+++ b/src/frontend/mame/ui/swlist.cpp
@@ -33,14 +33,14 @@ namespace ui {
// ctor
//-------------------------------------------------
-menu_software_parts::menu_software_parts(mame_ui_manager &mui, render_container *container, const software_info *info, const char *interface, const software_part **part, bool other_opt, result *result)
- : menu(mui, container)
+menu_software_parts::menu_software_parts(mame_ui_manager &mui, render_container *container, const software_info *info, const char *interface, const software_part **part, bool other_opt, result &result)
+ : menu(mui, container),
+ m_result(result)
{
m_info = info;
m_interface = interface;
m_selected_part = part;
m_other_opt = other_opt;
- m_result = result;
}
@@ -108,7 +108,7 @@ void menu_software_parts::handle()
if (event != nullptr && event->iptkey == IPT_UI_SELECT && event->itemref != nullptr)
{
software_part_menu_entry *entry = (software_part_menu_entry *) event->itemref;
- *m_result = entry->type;
+ m_result = entry->type;
*m_selected_part = entry->part;
menu::stack_pop(machine());
}