diff options
| author | 2021-03-30 19:44:07 +0100 | |
|---|---|---|
| committer | 2021-03-30 19:44:07 +0100 | |
| commit | 49339528112c57de5e52f2e8bbea91bf37c3704a (patch) | |
| tree | 6e8088af58b4df52958e8a691a6d36386d09df66 /src/socket.cpp | |
| parent | Fix 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.cpp | 4 |
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++; } |
