mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 12:58:33 +02:00
Common/Network: Make StringToMacAddress use a string_view
This function only ever reads the contents of the string in a non-owning manner, so we can change the parameter over to being a string view.
This commit is contained in:
@ -43,7 +43,7 @@ std::string MacAddressToString(const MACAddress& mac)
|
||||
mac[4], mac[5]);
|
||||
}
|
||||
|
||||
std::optional<MACAddress> StringToMacAddress(const std::string& mac_string)
|
||||
std::optional<MACAddress> StringToMacAddress(std::string_view mac_string)
|
||||
{
|
||||
if (mac_string.empty())
|
||||
return {};
|
||||
|
Reference in New Issue
Block a user