Remove the useless nullptr argument for the XmlNode constructor
This commit is contained in:
@@ -172,8 +172,8 @@ void XmppComponent::on_stanza(const Stanza& stanza)
|
|||||||
|
|
||||||
void XmppComponent::send_stream_error(const std::string& name, const std::string& explanation)
|
void XmppComponent::send_stream_error(const std::string& name, const std::string& explanation)
|
||||||
{
|
{
|
||||||
XmlNode node("stream:error", nullptr);
|
XmlNode node("stream:error");
|
||||||
XmlNode error(name, nullptr);
|
XmlNode error(name);
|
||||||
error["xmlns"] = STREAM_NS;
|
error["xmlns"] = STREAM_NS;
|
||||||
if (!explanation.empty())
|
if (!explanation.empty())
|
||||||
error.set_inner(explanation);
|
error.set_inner(explanation);
|
||||||
|
|||||||
Reference in New Issue
Block a user