diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-01-21 13:41:49 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-01-21 13:41:49 +0000 |
| commit | 545d50cef4cce7dc93ac568a78c0ed0d902527f6 (patch) | |
| tree | 499884a03d6caf289fce535248f6c48402dc1f98 /src/QXmppRpcIq.cpp | |
| parent | b0faa20df3346fa7b8a3ab938d9a4c4a2e3eac5d (diff) | |
| download | qxmpp-545d50cef4cce7dc93ac568a78c0ed0d902527f6.tar.gz | |
when writing "xmlns", always use QXmlStreamWriter::writeAttribute(), we *know* the value is not empty
Diffstat (limited to 'src/QXmppRpcIq.cpp')
| -rw-r--r-- | src/QXmppRpcIq.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
