summaryrefslogtreecommitdiff
path: root/src/xmpp/xmpp_component.cpp
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/xmpp/xmpp_component.cpp
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/xmpp/xmpp_component.cpp')
-rw-r--r--src/xmpp/xmpp_component.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp
index 8335c8a..35abbee 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -445,7 +445,7 @@ void XmppComponent::send_muc_leave(const std::string& muc_name, const std::strin
presence["to"] = jid_to;
presence["from"] = muc_name + "@" + this->served_hostname + "/" + nick;
presence["type"] = "unavailable";
- const std::string message_str = std::get<0>(message);
+ const std::string& message_str = std::get<0>(message);
XmlSubNode x(presence, "x");
x["xmlns"] = MUC_USER_NS;
if (self)