aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppIq.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-03-04 08:43:53 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-03-04 08:43:53 +0000
commitbb95ebd0e305071ccea30e356844042402bcd76b (patch)
tree8290d542d1c53c81828a3f8a5d45cf387a4c72d7 /source/QXmppIq.cpp
parentf3c8579fd664461f529d2fe4713093596ba9ff97 (diff)
downloadqxmpp-bb95ebd0e305071ccea30e356844042402bcd76b.tar.gz
regroup common stanza parsing inside QXmppStanza::parse()
Diffstat (limited to 'source/QXmppIq.cpp')
-rw-r--r--source/QXmppIq.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/QXmppIq.cpp b/source/QXmppIq.cpp
index 601092b4..c367fcba 100644
--- a/source/QXmppIq.cpp
+++ b/source/QXmppIq.cpp
@@ -56,11 +56,10 @@ void QXmppIq::setType(QXmppIq::Type type)
m_type = type;
}
-void QXmppIq::parse( QDomElement &element )
+void QXmppIq::parse(const QDomElement &element)
{
- setId(element.attribute("id"));
- setFrom(element.attribute("from"));
- setTo(element.attribute("to"));
+ QXmppStanza::parse(element);
+
setTypeFromStr(element.attribute("type"));
QXmppElementList extensions;