summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2016-01-21 16:52:44 +0100
committerFlorent Le Coz <louiz@louiz.org>2016-01-21 16:53:29 +0100
commit6770629bd7db1bf9f371a1d8a2376fad71cbd0f7 (patch)
tree68fe7f05c1ef09c07db470ca21c5cb44b4ff48c9
parent85867976dcf27427708927ebebd3d8a4866e706b (diff)
downloadbiboumi-6770629bd7db1bf9f371a1d8a2376fad71cbd0f7.tar.gz
biboumi-6770629bd7db1bf9f371a1d8a2376fad71cbd0f7.tar.bz2
biboumi-6770629bd7db1bf9f371a1d8a2376fad71cbd0f7.tar.xz
biboumi-6770629bd7db1bf9f371a1d8a2376fad71cbd0f7.zip
Fix a clang-check warning
I think it was a UB
-rw-r--r--src/xmpp/biboumi_component.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp
index 564c79a..65fbfc5 100644
--- a/src/xmpp/biboumi_component.cpp
+++ b/src/xmpp/biboumi_component.cpp
@@ -543,7 +543,7 @@ void BiboumiComponent::send_self_disco_info(const std::string& id, const std::st
identity["type"] = "irc";
identity["name"] = "Biboumi XMPP-IRC gateway";
query.add_child(std::move(identity));
- for (const std::string& ns: {DISCO_INFO_NS, MUC_NS, ADHOC_NS})
+ for (const char* ns: {DISCO_INFO_NS, MUC_NS, ADHOC_NS})
{
XmlNode feature("feature");
feature["var"] = ns;