Modernize std::find with ranges

This commit is contained in:
mitaclaw 2024-09-20 22:18:04 -07:00
parent b5f7a50874
commit 6ca7e2856b
7 changed files with 10 additions and 10 deletions

View file

@ -396,7 +396,7 @@ void GeckoCodeWidget::DownloadCodes()
for (const auto& code : codes)
{
auto it = std::find(m_gecko_codes.begin(), m_gecko_codes.end(), code);
auto it = std::ranges::find(m_gecko_codes, code);
if (it == m_gecko_codes.end())
{