aboutsummaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-03-30 19:44:07 +0100
committerGravatar Sadie Powell2021-03-30 19:44:07 +0100
commit49339528112c57de5e52f2e8bbea91bf37c3704a (patch)
tree6e8088af58b4df52958e8a691a6d36386d09df66 /src/socket.cpp
parentFix the setter and set time of list modes being lost on netburst. (diff)
Use emplace_back where possible.
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++;
}