Fix a clang-check warning

I think it was a UB
This commit is contained in:
Florent Le Coz
2016-01-21 16:53:29 +01:00
parent 85867976dc
commit 6770629bd7
+1 -1
View File
@@ -543,7 +543,7 @@ void BiboumiComponent::send_self_disco_info(const std::string& id, const std::st
identity["type"] = "irc"; identity["type"] = "irc";
identity["name"] = "Biboumi XMPP-IRC gateway"; identity["name"] = "Biboumi XMPP-IRC gateway";
query.add_child(std::move(identity)); 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"); XmlNode feature("feature");
feature["var"] = ns; feature["var"] = ns;