summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Network.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-12-06 09:43:42 -0500
committerLioncash <mathew1800@gmail.com>2019-12-06 09:45:25 -0500
commitf06461d208333e6367d5670f7718e8fa7b7e849e (patch)
treef8af9f9fb5e9452a308a10d6ba5d95dc3f5c3b3e /Source/Core/Common/Network.cpp
parent15fc71cfcf5f94221443aaff99ae559fa3cb4633 (diff)
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.
Diffstat (limited to 'Source/Core/Common/Network.cpp')
-rw-r--r--Source/Core/Common/Network.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Network.cpp b/Source/Core/Common/Network.cpp
index 77d835a126..1451440cc2 100644
--- a/Source/Core/Common/Network.cpp
+++ b/Source/Core/Common/Network.cpp
@@ -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 {};