Pass the shared_ptr by reference, to avoid useless copies
This commit is contained in:
@@ -26,7 +26,7 @@ class Bridge;
|
||||
class IrcClient: public TCPClientSocketHandler
|
||||
{
|
||||
public:
|
||||
explicit IrcClient(std::shared_ptr<Poller> poller, const std::string& hostname,
|
||||
explicit IrcClient(std::shared_ptr<Poller>& poller, const std::string& hostname,
|
||||
const std::string& nickname, const std::string& username,
|
||||
const std::string& realname, const std::string& user_hostname,
|
||||
Bridge& bridge);
|
||||
|
||||
Reference in New Issue
Block a user