mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Modernize std::min_element
with ranges
This commit is contained in:
@ -846,7 +846,7 @@ void AssemblerWidget::CloseTab(int index, AsmEditor* editor)
|
|||||||
|
|
||||||
int AssemblerWidget::AllocateTabNum()
|
int AssemblerWidget::AllocateTabNum()
|
||||||
{
|
{
|
||||||
auto min_it = std::min_element(m_free_editor_nums.begin(), m_free_editor_nums.end());
|
auto min_it = std::ranges::min_element(m_free_editor_nums);
|
||||||
if (min_it == m_free_editor_nums.end())
|
if (min_it == m_free_editor_nums.end())
|
||||||
{
|
{
|
||||||
return m_unnamed_editor_count++;
|
return m_unnamed_editor_count++;
|
||||||
|
Reference in New Issue
Block a user