From d296b2613c87ab155fadfede425b460e7b077d0c Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Thu, 22 Aug 2024 18:21:09 -0700 Subject: [PATCH] Modernize `std::adjacent_find` with ranges --- Source/Core/DolphinQt/NetPlay/GameDigestDialog.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/NetPlay/GameDigestDialog.cpp b/Source/Core/DolphinQt/NetPlay/GameDigestDialog.cpp index 6ca4ec378d..b8c92ff8b6 100644 --- a/Source/Core/DolphinQt/NetPlay/GameDigestDialog.cpp +++ b/Source/Core/DolphinQt/NetPlay/GameDigestDialog.cpp @@ -145,8 +145,7 @@ void GameDigestDialog::SetResult(int pid, const std::string& result) auto client = Settings::Instance().GetNetPlayClient(); if (client && m_results.size() >= client->GetPlayers().size()) { - if (std::adjacent_find(m_results.begin(), m_results.end(), std::not_equal_to<>()) == - m_results.end()) + if (std::ranges::adjacent_find(m_results, std::ranges::not_equal_to{}) == m_results.end()) { m_check_label->setText(tr("The hashes match!")); }