From 545d50cef4cce7dc93ac568a78c0ed0d902527f6 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Fri, 21 Jan 2011 13:41:49 +0000 Subject: when writing "xmlns", always use QXmlStreamWriter::writeAttribute(), we *know* the value is not empty --- src/QXmppBindIq.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/QXmppBindIq.cpp') diff --git a/src/QXmppBindIq.cpp b/src/QXmppBindIq.cpp index 4548b23b..f818e002 100644 --- a/src/QXmppBindIq.cpp +++ b/src/QXmppBindIq.cpp @@ -80,7 +80,7 @@ void QXmppBindIq::parseElementFromChild(const QDomElement &element) void QXmppBindIq::toXmlElementFromChild(QXmlStreamWriter *writer) const { writer->writeStartElement("bind"); - helperToXmlAddAttribute(writer, "xmlns", ns_bind); + writer->writeAttribute("xmlns", ns_bind); if (!m_jid.isEmpty()) helperToXmlAddTextElement(writer, "jid", m_jid); if (!m_resource.isEmpty()) -- cgit v1.2.3