summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/selector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/ui/selector.cpp')
-rw-r--r--src/emu/ui/selector.cpp25
1 files changed, 19 insertions, 6 deletions
diff --git a/src/emu/ui/selector.cpp b/src/emu/ui/selector.cpp
index 330694fd497..5f1704b79fe 100644
--- a/src/emu/ui/selector.cpp
+++ b/src/emu/ui/selector.cpp
@@ -18,13 +18,26 @@
// ctor / dtor
//-------------------------------------------------
-ui_menu_selector::ui_menu_selector(running_machine &machine, render_container *container, std::vector<std::string> s_sel, UINT16 &s_actual, int category, int _hover)
- : ui_menu(machine, container), m_selector(s_actual)
+ui_menu_selector::ui_menu_selector(running_machine &machine, render_container *container, std::vector<std::string> const &s_sel, UINT16 &s_actual, int category, int _hover)
+ : ui_menu(machine, container)
+ , m_selector(s_actual)
+ , m_category(category)
+ , m_hover(_hover)
+ , m_first_pass(true)
+ , m_str_items(s_sel)
+{
+ m_search[0] = '\0';
+ m_searchlist[0] = nullptr;
+}
+
+ui_menu_selector::ui_menu_selector(running_machine &machine, render_container *container, std::vector<std::string> &&s_sel, UINT16 &s_actual, int category, int _hover)
+ : ui_menu(machine, container)
+ , m_selector(s_actual)
+ , m_category(category)
+ , m_hover(_hover)
+ , m_first_pass(true)
+ , m_str_items(std::move(s_sel))
{
- m_category = category;
- m_first_pass = true;
- m_hover = _hover;
- m_str_items = s_sel;
m_search[0] = '\0';
m_searchlist[0] = nullptr;
}
lass='inline' src='//www.gravatar.com/avatar/76149e982ea9b87e65b08e77cd940554?s=13&d=retro' /> Vas Crabb2016-07-101-39/+31 * UI refactoring: move palette menu drawing code out of base into palette menu ... Vas Crabb2016-07-101-7/+3 * UI refactoring: [Vas Crabb] Vas Crabb2016-07-101-25/+18 * UI code refactoring: [Vas Crabb] Vas Crabb2016-07-101-93/+89 * Reduce visibility of more menu members Vas Crabb2016-07-091-13/+18 * another baby step untangling the menu code Vas Crabb2016-07-091-14/+18 * Fixed MT06263 dankan18902016-07-021-1/+1 * Cleanups to the software list menu Nathan Woods2016-06-301-3/+0 * Added a move constructor and got rid of the 'const char *' overload. I had t... Nathan Woods2016-06-291-1/+1 * C++-ified the strings inside of menu items