diff --git a/Source/Core/Common/Network.cpp b/Source/Core/Common/Network.cpp index 4c56eea8e7..a928e8e831 100644 --- a/Source/Core/Common/Network.cpp +++ b/Source/Core/Common/Network.cpp @@ -44,7 +44,7 @@ std::string MacAddressToString(const MACAddress& mac) std::optional StringToMacAddress(std::string_view mac_string) { if (mac_string.empty()) - return {}; + return std::nullopt; int x = 0; MACAddress mac{}; @@ -68,7 +68,7 @@ std::optional StringToMacAddress(std::string_view mac_string) // nibble is a character in the MAC address, making 12 characters // in total. if (x / 2 != MAC_ADDRESS_SIZE) - return {}; + return std::nullopt; return std::make_optional(mac); }