mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
NetKDRequest: Make use of std::erase
This commit is contained in:
parent
e7f7dde546
commit
96eac73d11
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user