mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
NetKDRequest: Make use of std::erase
This commit is contained in:
@ -556,7 +556,7 @@ NWC24::ErrorCode NetKDRequestDevice::KDSendMail()
|
|||||||
{
|
{
|
||||||
LogError(ErrorType::SendMail, res);
|
LogError(ErrorType::SendMail, res);
|
||||||
}
|
}
|
||||||
mails.erase(std::remove(mails.begin(), mails.end(), file_index), mails.end());
|
std::erase(mails, file_index);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -574,7 +574,7 @@ NWC24::ErrorCode NetKDRequestDevice::KDSendMail()
|
|||||||
LogError(ErrorType::SendMail, res);
|
LogError(ErrorType::SendMail, res);
|
||||||
}
|
}
|
||||||
|
|
||||||
mails.erase(std::remove(mails.begin(), mails.end(), file_index), mails.end());
|
std::erase(mails, file_index);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user