mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 07:45:33 +01: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…
x
Reference in New Issue
Block a user