From 07e2209596a1fbcc1d6f97d68bfda8e2add19ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Thu, 22 Sep 2016 00:00:13 +0200 Subject: Add the missing & for 3 std::string function arguments --- src/irc/iid.cpp | 2 +- src/irc/iid.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/irc') 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 -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& chantypes); Iid(const std::string& iid, const std::initializer_list& 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; -- cgit v1.2.3