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/QXmppBindIq.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base/QXmppBindIq.cpp') diff --git a/src/base/QXmppBindIq.cpp b/src/base/QXmppBindIq.cpp index 1e1bfa51..b0351980 100644 --- a/src/base/QXmppBindIq.cpp +++ b/src/base/QXmppBindIq.cpp @@ -81,7 +81,7 @@ void QXmppBindIq::parseElementFromChild(const QDomElement &element) void QXmppBindIq::toXmlElementFromChild(QXmlStreamWriter *writer) const { writer->writeStartElement("bind"); - writer->writeAttribute("xmlns", ns_bind); + writer->writeDefaultNamespace(ns_bind); if (!m_jid.isEmpty()) helperToXmlAddTextElement(writer, "jid", m_jid); if (!m_resource.isEmpty()) -- cgit v1.2.3