Modernize std::adjacent_find with ranges

This commit is contained in:
mitaclaw 2024-08-22 18:21:09 -07:00
parent e4fb837f4b
commit d296b2613c

View File

@ -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!"));
}