From bcaf665d14c5e20ecc88a8978df19ca73e0e29fc Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Sat, 28 Sep 2024 20:22:58 -0700 Subject: [PATCH] Modernize `std::reverse_copy` with ranges --- Source/Core/Core/IOS/USB/Bluetooth/BTReal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/IOS/USB/Bluetooth/BTReal.cpp b/Source/Core/Core/IOS/USB/Bluetooth/BTReal.cpp index b8547c9de9..e3a6a660ed 100644 --- a/Source/Core/Core/IOS/USB/Bluetooth/BTReal.cpp +++ b/Source/Core/Core/IOS/USB/Bluetooth/BTReal.cpp @@ -621,7 +621,7 @@ void BluetoothRealDevice::SaveLinkKeys() { bdaddr_t address; // Reverse the address so that it is stored in the correct order in the config file - std::reverse_copy(entry.first.begin(), entry.first.end(), address.begin()); + std::ranges::reverse_copy(entry.first, address.begin()); oss << Common::MacAddressToString(address); oss << '='; oss << std::hex;