summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-04-07 19:01:49 +0200
committerlouiz’ <louiz@louiz.org>2017-04-07 19:01:49 +0200
commitbe9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea (patch)
tree7b3c18d8c0b6a1b0f5c3a56a44cb7ed3b2ff2739 /src/irc
parentb82a14f20effad351cd2b1f344d526202ef11caf (diff)
downloadbiboumi-be9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea.tar.gz
biboumi-be9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea.tar.bz2
biboumi-be9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea.tar.xz
biboumi-be9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea.zip
Apply all the clang-tidy performance-* fixes
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 1d025f2..1f562fe 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -385,7 +385,7 @@ void IrcClient::send_message(IrcMessage&& message)
res += message.command;
for (const std::string& arg: message.arguments)
{
- if (arg.find(" ") != std::string::npos ||
+ if (arg.find(' ') != std::string::npos ||
(!arg.empty() && arg[0] == ':'))
{
res += " :" + arg;
@@ -1080,7 +1080,7 @@ void IrcClient::on_channel_mode(const IrcMessage& message)
{
// That mode can also be of type B if it is present in the
// prefix_to_mode map
- for (const std::pair<char, char>& pair: this->prefix_to_mode)
+ for (const auto& pair: this->prefix_to_mode)
if (pair.second == c)
{
type = 1;