diff --git a/Source/Core/Core/IOS/USB/USBV4.cpp b/Source/Core/Core/IOS/USB/USBV4.cpp index 6c8f58ec2b..f2bb54064c 100644 --- a/Source/Core/Core/IOS/USB/USBV4.cpp +++ b/Source/Core/Core/IOS/USB/USBV4.cpp @@ -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); }