mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Modernize std::reverse_copy
with ranges
This commit is contained in:
parent
78440ca335
commit
bcaf665d14
@ -621,7 +621,7 @@ void BluetoothRealDevice::SaveLinkKeys()
|
|||||||
{
|
{
|
||||||
bdaddr_t address;
|
bdaddr_t address;
|
||||||
// Reverse the address so that it is stored in the correct order in the config file
|
// 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 << Common::MacAddressToString(address);
|
||||||
oss << '=';
|
oss << '=';
|
||||||
oss << std::hex;
|
oss << std::hex;
|
||||||
|
Loading…
Reference in New Issue
Block a user