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