From e572081ac322253d65bf767a88887fedd4e97c2e Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Sun, 29 Sep 2024 11:12:44 -0700 Subject: [PATCH] Modernize `std::min_element` with ranges --- Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp b/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp index 23fffefa64..958e731c0d 100644 --- a/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp @@ -846,7 +846,7 @@ void AssemblerWidget::CloseTab(int index, AsmEditor* editor) 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()) { return m_unnamed_editor_count++;