summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--windows/winroute/src/winroute/InterfacePair.cpp6
-rw-r--r--windows/winroute/src/winroute/NetworkInterfaces.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/windows/winroute/src/winroute/InterfacePair.cpp b/windows/winroute/src/winroute/InterfacePair.cpp
index eda7dd8314..65a8e07d59 100644
--- a/windows/winroute/src/winroute/InterfacePair.cpp
+++ b/windows/winroute/src/winroute/InterfacePair.cpp
@@ -20,7 +20,7 @@ InterfacePair::InterfacePair(NET_LUID interface_luid)
if (!(HasIPv4() || HasIPv6())) {
std::stringstream ss;
- ss << L"LUID "
+ ss << "LUID "
<< interface_luid.Value
<< " does not specify any IPv4 or IPv6 interfaces";
throw std::runtime_error(ss.str());
@@ -56,7 +56,7 @@ void InterfacePair::SetInterface(PMIB_IPINTERFACE_ROW iface) {
if (status != NO_ERROR)
{
std::stringstream ss;
- ss << L"Failed to set metric for "
+ ss << "Failed to set metric for "
<< (iface->Family == AF_INET ? "IPv4" : "IPv6")
<< " interface with LUID"
<< iface->InterfaceLuid.Value
@@ -86,7 +86,7 @@ void InterfacePair::InitializeInterface(PMIB_IPINTERFACE_ROW iface)
}
else {
std::stringstream ss;
- ss << L"Failed get network interface with LUID "
+ ss << "Failed get network interface with LUID "
<< &iface->InterfaceLuid.Value
<< ": "
<< status;
diff --git a/windows/winroute/src/winroute/NetworkInterfaces.cpp b/windows/winroute/src/winroute/NetworkInterfaces.cpp
index f80c2f5f3b..a0a4d53db8 100644
--- a/windows/winroute/src/winroute/NetworkInterfaces.cpp
+++ b/windows/winroute/src/winroute/NetworkInterfaces.cpp
@@ -48,7 +48,7 @@ void NetworkInterfaces::EnsureIfaceMetricIsHighest(NET_LUID interfaceLuid)
if (success != NO_ERROR)
{
std::stringstream ss;
- ss << L"Failed to increment metric for interface with LUID "
+ ss << "Failed to increment metric for interface with LUID "
<< &iface->InterfaceLuid.Value
<< ": "
<< success;
@@ -67,7 +67,7 @@ NetworkInterfaces::NetworkInterfaces()
if (success != NO_ERROR)
{
std::stringstream ss;
- ss << L"Failed to enumerate network interfaces: " << success;
+ ss << "Failed to enumerate network interfaces: " << success;
throw std::runtime_error(ss.str());
}
}