summaryrefslogtreecommitdiff
path: root/src/bridge
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/bridge
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/bridge')
-rw-r--r--src/bridge/bridge.cpp2
-rw-r--r--src/bridge/bridge.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index 573e8d7..7e2d8c1 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -29,7 +29,7 @@ static std::string in_encoding_for(const Bridge& bridge, const Iid& iid)
#endif
}
-Bridge::Bridge(const std::string& user_jid, BiboumiComponent& xmpp, std::shared_ptr<Poller> poller):
+Bridge::Bridge(const std::string& user_jid, BiboumiComponent& xmpp, std::shared_ptr<Poller>& poller):
user_jid(user_jid),
xmpp(xmpp),
poller(poller)
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp
index b165650..73daae7 100644
--- a/src/bridge/bridge.hpp
+++ b/src/bridge/bridge.hpp
@@ -38,7 +38,7 @@ using irc_responder_callback_t = std::function<bool(const std::string& irc_hostn
class Bridge
{
public:
- explicit Bridge(const std::string& user_jid, BiboumiComponent& xmpp, std::shared_ptr<Poller> poller);
+ explicit Bridge(const std::string& user_jid, BiboumiComponent& xmpp, std::shared_ptr<Poller>& poller);
~Bridge() = default;
Bridge(const Bridge&) = delete;