Incorporating Vas Crabb feedback

This commit is contained in:
Nathan Woods 2016-07-01 07:32:07 -04:00
parent 270336bf19
commit 6a4349dc68
2 changed files with 8 additions and 2 deletions

View File

@ -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));
}
}

View File

@ -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;
};