mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
Incorporating Vas Crabb feedback
This commit is contained in:
parent
270336bf19
commit
6a4349dc68
@ -188,9 +188,9 @@ void menu_software_list::append_software_entry(const software_info &swinfo)
|
||||
// find the end of the list
|
||||
auto iter = m_entrylist.begin();
|
||||
while (iter != m_entrylist.end() && compare_entries(entry, *iter, m_ordered_by_shortname) >= 0)
|
||||
iter++;
|
||||
++iter;
|
||||
|
||||
m_entrylist.insert(iter, entry);
|
||||
m_entrylist.emplace(iter, std::move(entry));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -54,6 +54,12 @@ public:
|
||||
private:
|
||||
struct entry_info
|
||||
{
|
||||
entry_info() = default;
|
||||
entry_info(entry_info const &) = default;
|
||||
entry_info(entry_info &&) = default;
|
||||
entry_info &operator=(entry_info const &) = default;
|
||||
entry_info &operator=(entry_info &&) = default;
|
||||
|
||||
std::string short_name;
|
||||
std::string long_name;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user