Modernize `std::replace_if` with ranges

This commit is contained in:
mitaclaw 2024-09-29 11:08:17 -07:00
parent 0a80243a92
commit a7160c7b38
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ void V4GetUSStringMessage::OnTransferComplete(s32 return_value) const
auto& memory = system.GetMemory();
std::string message = memory.GetString(data_address);
std::replace_if(message.begin(), message.end(), std::not_fn(Common::IsPrintableCharacter), '?');
std::ranges::replace_if(message, std::not_fn(Common::IsPrintableCharacter), '?');
memory.CopyToEmu(data_address, message.c_str(), message.size());
TransferCommand::OnTransferComplete(return_value);
}