summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-09-29 11:12:44 -0700
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-10-10 00:53:48 -0700
commite572081ac322253d65bf767a88887fedd4e97c2e (patch)
treeb31868d6c9c569b214d7789b28c4dffe070bea86 /Source
parentc99a0c25e05f6ff4107f39975a20d2e66bdaa041 (diff)
Modernize `std::min_element` with ranges
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp2
1 files changed, 1 insertions, 1 deletions
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++;