Commit 07e22095 authored by louiz’'s avatar louiz’

Add the missing & for 3 std::string function arguments

parent 35fc5d6f
......@@ -563,7 +563,7 @@ void Bridge::on_gateway_ping(const std::string& irc_hostname, const std::string&
"", true);
}
void Bridge::send_irc_invitation(const Iid& iid, const std::string to)
void Bridge::send_irc_invitation(const Iid& iid, const std::string& to)
{
IrcClient* irc = this->get_irc_client(iid.get_server());
Jid to_jid(to);
......
......@@ -111,7 +111,7 @@ public:
void on_gateway_ping(const std::string& irc_hostname, const std::string& iq_id, const std::string& to_jid,
const std::string& from_jid);
void send_irc_invitation(const Iid& iid, const std::string to);
void send_irc_invitation(const Iid& iid, const std::string& to);
/***
**
......
......@@ -5,7 +5,7 @@
#include <utils/encoding.hpp>
Iid::Iid(const std::string local, const std::string server, Iid::Type type):
Iid::Iid(const std::string& local, const std::string& server, Iid::Type type):
type(type),
local(local),
server(server)
......
......@@ -58,7 +58,7 @@ public:
Iid(const std::string& iid, const std::set<char>& chantypes);
Iid(const std::string& iid, const std::initializer_list<char>& chantypes);
Iid(const std::string& iid, const Bridge* bridge);
Iid(const std::string local, const std::string server, Type type);
Iid(const std::string& local, const std::string& server, Type type);
Iid() = default;
Iid(const Iid&) = default;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment