summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-12-13 23:01:32 +0100
committerlouiz’ <louiz@louiz.org>2016-12-13 23:01:32 +0100
commit810c4343c72b0a5ac61155f2a71a969fc5f8ea9c (patch)
tree4c07f5b1256df3ef8602ee6183e6c04fd9dc8d2e
parent4792c70635cd73d581861a6da9794655a5e72099 (diff)
downloadbiboumi-810c4343c72b0a5ac61155f2a71a969fc5f8ea9c.tar.gz
biboumi-810c4343c72b0a5ac61155f2a71a969fc5f8ea9c.tar.bz2
biboumi-810c4343c72b0a5ac61155f2a71a969fc5f8ea9c.tar.xz
biboumi-810c4343c72b0a5ac61155f2a71a969fc5f8ea9c.zip
Remove the useless nullptr argument for the XmlNode constructor
-rw-r--r--louloulibs/xmpp/xmpp_component.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/louloulibs/xmpp/xmpp_component.cpp b/louloulibs/xmpp/xmpp_component.cpp
index c842701..32702d1 100644
--- a/louloulibs/xmpp/xmpp_component.cpp
+++ b/louloulibs/xmpp/xmpp_component.cpp
@@ -172,8 +172,8 @@ void XmppComponent::on_stanza(const Stanza& stanza)
void XmppComponent::send_stream_error(const std::string& name, const std::string& explanation)
{
- XmlNode node("stream:error", nullptr);
- XmlNode error(name, nullptr);
+ XmlNode node("stream:error");
+ XmlNode error(name);
error["xmlns"] = STREAM_NS;
if (!explanation.empty())
error.set_inner(explanation);