Pass the shared_ptr by reference, to avoid useless copies

This commit is contained in:
louiz’
2017-03-08 19:04:15 +01:00
parent cd92baae3f
commit f0bc6c83a8
21 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ class BiboumiComponent;
class IdentdServer: public TcpSocketServer<IdentdSocket>
{
public:
IdentdServer(const BiboumiComponent& biboumi_component, std::shared_ptr<Poller> poller, const uint16_t port):
IdentdServer(const BiboumiComponent& biboumi_component, std::shared_ptr<Poller>& poller, const uint16_t port):
TcpSocketServer<IdentdSocket>(poller, port),
biboumi_component(biboumi_component)
{}