summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-04-07 18:53:12 +0200
committerlouiz’ <louiz@louiz.org>2017-04-07 18:53:12 +0200
commitccb4ee098f0416ab47a46650705dba6495e8bec7 (patch)
treea309d09af17cd0d49a768660232bfaa9df100a57 /src/irc
parent5402a256d1f0ebbeafa32d250d000cf38fe748fb (diff)
downloadbiboumi-ccb4ee098f0416ab47a46650705dba6495e8bec7.tar.gz
biboumi-ccb4ee098f0416ab47a46650705dba6495e8bec7.tar.bz2
biboumi-ccb4ee098f0416ab47a46650705dba6495e8bec7.tar.xz
biboumi-ccb4ee098f0416ab47a46650705dba6495e8bec7.zip
Apply all the clang-tidy misc-* fixes
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/iid.cpp2
-rw-r--r--src/irc/irc_client.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/irc/iid.cpp b/src/irc/iid.cpp
index 63c7039..a63a1c3 100644
--- a/src/irc/iid.cpp
+++ b/src/irc/iid.cpp
@@ -9,7 +9,7 @@
constexpr char Iid::separator[];
Iid::Iid(std::string local, std::string server, Iid::Type type):
- type(std::move(type)),
+ type(type),
local(std::move(local)),
server(std::move(server))
{
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 710ba15..1d025f2 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -382,7 +382,7 @@ void IrcClient::send_message(IrcMessage&& message)
std::string res;
if (!message.prefix.empty())
res += ":" + std::move(message.prefix) + " ";
- res += std::move(message.command);
+ res += message.command;
for (const std::string& arg: message.arguments)
{
if (arg.find(" ") != std::string::npos ||
@@ -889,7 +889,7 @@ void IrcClient::on_part(const IrcMessage& message)
// channel pointer is now invalid
channel = nullptr;
}
- this->bridge.send_muc_leave(iid, std::move(nick), std::move(txt), self);
+ this->bridge.send_muc_leave(iid, std::move(nick), txt, self);
}
}