From 7472d8d86a1da384104690db2a22977dcc135e24 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Wed, 29 Jan 2020 18:30:46 +0100 Subject: Replace manual xmlns writing by writeDefaultNamespace() This is the result of: sed -i 's/writeAttribute("xmlns", /writeDefaultNamespace(/g' \ $(find . -iname "*.cpp" -or -iname "*.h") --- src/base/QXmppMixIq.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base/QXmppMixIq.cpp') diff --git a/src/base/QXmppMixIq.cpp b/src/base/QXmppMixIq.cpp index 0f0afc29..854b86b8 100644 --- a/src/base/QXmppMixIq.cpp +++ b/src/base/QXmppMixIq.cpp @@ -184,7 +184,7 @@ void QXmppMixIq::toXmlElementFromChild(QXmlStreamWriter* writer) const writer->writeStartElement(MIX_ACTION_TYPES.at(d->actionType)); if (d->actionType == ClientJoin || d->actionType == ClientLeave) { - writer->writeAttribute("xmlns", ns_mix_pam); + writer->writeDefaultNamespace(ns_mix_pam); if (type() == Set) helperToXmlAddAttribute(writer, "channel", d->jid); @@ -194,7 +194,7 @@ void QXmppMixIq::toXmlElementFromChild(QXmlStreamWriter* writer) const writer->writeStartElement("leave"); } - writer->writeAttribute("xmlns", ns_mix); + writer->writeDefaultNamespace(ns_mix); helperToXmlAddAttribute(writer, "channel", d->channelName); if (type() == Result) helperToXmlAddAttribute(writer, "jid", d->jid); -- cgit v1.2.3