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/QXmppRpcIq.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base/QXmppRpcIq.cpp') diff --git a/src/base/QXmppRpcIq.cpp b/src/base/QXmppRpcIq.cpp index ed8a8ea1..b69aef48 100644 --- a/src/base/QXmppRpcIq.cpp +++ b/src/base/QXmppRpcIq.cpp @@ -322,7 +322,7 @@ void QXmppRpcResponseIq::parseElementFromChild(const QDomElement &element) void QXmppRpcResponseIq::toXmlElementFromChild(QXmlStreamWriter *writer) const { writer->writeStartElement("query"); - writer->writeAttribute("xmlns", ns_rpc); + writer->writeDefaultNamespace(ns_rpc); writer->writeStartElement("methodResponse"); if (m_faultCode) @@ -425,7 +425,7 @@ void QXmppRpcInvokeIq::parseElementFromChild(const QDomElement &element) void QXmppRpcInvokeIq::toXmlElementFromChild(QXmlStreamWriter *writer) const { writer->writeStartElement("query"); - writer->writeAttribute("xmlns", ns_rpc); + writer->writeDefaultNamespace(ns_rpc); writer->writeStartElement("methodCall"); writer->writeTextElement("methodName", m_method); -- cgit v1.2.3