~singpolyma/biboumi

07e2209596a1fbcc1d6f97d68bfda8e2add19ea2 — louiz’ 8 years ago 35fc5d6
Add the missing & for 3 std::string function arguments
4 files changed, 4 insertions(+), 4 deletions(-)

M src/bridge/bridge.cpp
M src/bridge/bridge.hpp
M src/irc/iid.cpp
M src/irc/iid.hpp
M src/bridge/bridge.cpp => src/bridge/bridge.cpp +1 -1
@@ 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);

M src/bridge/bridge.hpp => src/bridge/bridge.hpp +1 -1
@@ 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);

  /***
   **

M src/irc/iid.cpp => src/irc/iid.cpp +1 -1
@@ 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)

M src/irc/iid.hpp => src/irc/iid.hpp +1 -1
@@ 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;