diff options
author | louiz’ <louiz@louiz.org> | 2017-03-08 19:04:15 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-03-08 19:04:15 +0100 |
commit | f0bc6c83a8eb548d0a3edbf7c16a6922bfd24ba5 (patch) | |
tree | c9df36ef6781dfa56d2a3fee5b68390aa1e9ceb5 /src/irc | |
parent | cd92baae3f0de8b841b5bbfdb02e4fa95acd52c1 (diff) | |
download | biboumi-f0bc6c83a8eb548d0a3edbf7c16a6922bfd24ba5.tar.gz biboumi-f0bc6c83a8eb548d0a3edbf7c16a6922bfd24ba5.tar.bz2 biboumi-f0bc6c83a8eb548d0a3edbf7c16a6922bfd24ba5.tar.xz biboumi-f0bc6c83a8eb548d0a3edbf7c16a6922bfd24ba5.zip |
Pass the shared_ptr by reference, to avoid useless copies
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/irc_client.cpp | 2 | ||||
-rw-r--r-- | src/irc/irc_client.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp index 6813bba..d0970c1 100644 --- a/src/irc/irc_client.cpp +++ b/src/irc/irc_client.cpp @@ -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): diff --git a/src/irc/irc_client.hpp b/src/irc/irc_client.hpp index 4b942ad..009d0c9 100644 --- a/src/irc/irc_client.hpp +++ b/src/irc/irc_client.hpp @@ -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); |