summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bridge/bridge.cpp2
-rw-r--r--src/bridge/bridge.hpp2
-rw-r--r--src/irc/iid.cpp2
-rw-r--r--src/irc/iid.hpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index d4c2b2a..d16875f 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -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);
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp
index 0e1fbf4..b278ea7 100644
--- a/src/bridge/bridge.hpp
+++ b/src/bridge/bridge.hpp
@@ -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);
/***
**
diff --git a/src/irc/iid.cpp b/src/irc/iid.cpp
index c951a49..ff14da5 100644
--- a/src/irc/iid.cpp
+++ b/src/irc/iid.cpp
@@ -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)
diff --git a/src/irc/iid.hpp b/src/irc/iid.hpp
index 7361c51..a857ae9 100644
--- a/src/irc/iid.hpp
+++ b/src/irc/iid.hpp
@@ -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;