From 96eac73d11cc96c4a6b0c46e59aa73899f2db6ea Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 12 Dec 2023 13:27:54 -0500 Subject: [PATCH] NetKDRequest: Make use of std::erase --- Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp b/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp index 8bc813a96b..0b7e7de9a2 100644 --- a/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp +++ b/Source/Core/Core/IOS/Network/KD/NetKDRequest.cpp @@ -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; }