From 49339528112c57de5e52f2e8bbea91bf37c3704a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 30 Mar 2021 19:44:07 +0100 Subject: Use emplace_back where possible. --- src/socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/socket.cpp') 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++; } -- cgit v1.3.1-10-gc9f91