mirror of
https://github.com/anope/anope.git
synced 2026-06-27 03:56:37 +02:00
Replace all uses of push_back with emplace_back.
This commit is contained in:
+1
-1
@@ -312,7 +312,7 @@ class MyHTTPProvider : public HTTPProvider, public Timer
|
||||
ClientSocket* OnAccept(int fd, const sockaddrs &addr) override
|
||||
{
|
||||
MyHTTPClient *c = new MyHTTPClient(this, fd, addr);
|
||||
this->clients.push_back(c);
|
||||
this->clients.emplace_back(c);
|
||||
return c;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user