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);
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue