summaryrefslogtreecommitdiff
path: root/src/xmpp/biboumi_component.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-03-08 19:04:15 +0100
committerlouiz’ <louiz@louiz.org>2017-03-08 19:04:15 +0100
commitf0bc6c83a8eb548d0a3edbf7c16a6922bfd24ba5 (patch)
treec9df36ef6781dfa56d2a3fee5b68390aa1e9ceb5 /src/xmpp/biboumi_component.cpp
parentcd92baae3f0de8b841b5bbfdb02e4fa95acd52c1 (diff)
downloadbiboumi-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/xmpp/biboumi_component.cpp')
-rw-r--r--src/xmpp/biboumi_component.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp
index 2783b93..4ba5e65 100644
--- a/src/xmpp/biboumi_component.cpp
+++ b/src/xmpp/biboumi_component.cpp
@@ -44,7 +44,7 @@ static std::set<std::string> kickable_errors{
};
-BiboumiComponent::BiboumiComponent(std::shared_ptr<Poller> poller, const std::string& hostname, const std::string& secret):
+BiboumiComponent::BiboumiComponent(std::shared_ptr<Poller>& poller, const std::string& hostname, const std::string& secret):
XmppComponent(poller, hostname, secret),
irc_server_adhoc_commands_handler(*this),
irc_channel_adhoc_commands_handler(*this)