NetKDRequest: Make use of std::erase

This commit is contained in:
Lioncash 2023-12-12 13:27:54 -05:00
parent e7f7dde546
commit 96eac73d11

View File

@ -556,7 +556,7 @@ NWC24::ErrorCode NetKDRequestDevice::KDSendMail()
{
LogError(ErrorType::SendMail, res);
}
mails.erase(std::remove(mails.begin(), mails.end(), file_index), mails.end());
std::erase(mails, file_index);
continue;
}
@ -574,7 +574,7 @@ NWC24::ErrorCode NetKDRequestDevice::KDSendMail()
LogError(ErrorType::SendMail, res);
}
mails.erase(std::remove(mails.begin(), mails.end(), file_index), mails.end());
std::erase(mails, file_index);
continue;
}