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
@@ -128,7 +128,7 @@ static const std::unordered_map<std::string,
{"502", {&IrcClient::on_generic_error, {2, 0}}},
};
IrcClient::IrcClient(std::shared_ptr<Poller> poller, const std::string& hostname,
IrcClient::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):