aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppPingIq.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2011-01-21 13:41:49 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2011-01-21 13:41:49 +0000
commit545d50cef4cce7dc93ac568a78c0ed0d902527f6 (patch)
tree499884a03d6caf289fce535248f6c48402dc1f98 /src/QXmppPingIq.cpp
parentb0faa20df3346fa7b8a3ab938d9a4c4a2e3eac5d (diff)
downloadqxmpp-545d50cef4cce7dc93ac568a78c0ed0d902527f6.tar.gz
when writing "xmlns", always use QXmlStreamWriter::writeAttribute(), we *know* the value is not empty
Diffstat (limited to 'src/QXmppPingIq.cpp')
-rw-r--r--src/QXmppPingIq.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/QXmppPingIq.cpp b/src/QXmppPingIq.cpp
index 1245e320..7058c6d0 100644
--- a/src/QXmppPingIq.cpp
+++ b/src/QXmppPingIq.cpp
@@ -41,7 +41,7 @@ bool QXmppPingIq::isPingIq(const QDomElement &element)
void QXmppPingIq::toXmlElementFromChild(QXmlStreamWriter *writer) const
{
writer->writeStartElement("ping");
- helperToXmlAddAttribute(writer, "xmlns", ns_ping);
+ writer->writeAttribute("xmlns", ns_ping);
writer->writeEndElement();
}