aboutsummaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 57d3d1399..4f1c164b1 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -89,7 +89,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports)
continue;
if (!BindPort(tag, bindspec, old_ports))
- failed_ports.push_back(FailedPort(errno, bindspec, tag));
+ failed_ports.emplace_back(errno, bindspec, tag);
else
bound++;
}
@@ -123,7 +123,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports)
irc::sockets::untosa(fullpath, bindspec);
if (!BindPort(tag, bindspec, old_ports))
- failed_ports.push_back(FailedPort(errno, bindspec, tag));
+ failed_ports.emplace_back(errno, bindspec, tag);
else
bound++;
}