From 6e5f4125e32f545a61e611720fd30c051b691d62 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sun, 16 Jan 2022 16:38:11 -0800 Subject: Use Common::ToLower and Common::ToUpper --- Source/Core/Common/Network.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/Common/Network.cpp') diff --git a/Source/Core/Common/Network.cpp b/Source/Core/Common/Network.cpp index 083960f5bc..e2fdc3d2d6 100644 --- a/Source/Core/Common/Network.cpp +++ b/Source/Core/Common/Network.cpp @@ -4,7 +4,6 @@ #include "Common/Network.h" #include -#include #include #ifndef _WIN32 @@ -18,6 +17,7 @@ #include #include "Common/Random.h" +#include "Common/StringUtil.h" namespace Common { @@ -59,7 +59,7 @@ std::optional StringToMacAddress(std::string_view mac_string) for (size_t i = 0; i < mac_string.size() && x < (MAC_ADDRESS_SIZE * 2); ++i) { - char c = tolower(mac_string.at(i)); + char c = Common::ToLower(mac_string.at(i)); if (c >= '0' && c <= '9') { mac[x / 2] |= (c - '0') << ((x & 1) ? 0 : 4); -- cgit v1.2.3