mirror of
https://github.com/holub/mame
synced 2025-04-21 16:01:56 +03:00
Actually commit the workaround for Xcode's issues with reference wrapper casts.
This commit is contained in:
parent
292178da5c
commit
72cf79bb9a
@ -373,9 +373,18 @@ void menu_select_game::populate(float &customtop, float &custombottom)
|
||||
// if filter is set on category, build category list
|
||||
auto const &sorted(m_persistent_data.sorted_list());
|
||||
if (!flt)
|
||||
std::copy(sorted.begin(), sorted.end(), std::back_inserter(m_displaylist));
|
||||
{
|
||||
for (ui_system_info const &sysinfo : sorted)
|
||||
m_displaylist.emplace_back(sysinfo);
|
||||
}
|
||||
else
|
||||
flt->apply(sorted.begin(), sorted.end(), std::back_inserter(m_displaylist));
|
||||
{
|
||||
for (ui_system_info const &sysinfo : sorted)
|
||||
{
|
||||
if (flt->apply(sysinfo))
|
||||
m_displaylist.emplace_back(sysinfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// iterate over entries
|
||||
|
Loading…
Reference in New Issue
Block a user