diff options
Diffstat (limited to 'source/QXmppIq.cpp')
| -rw-r--r-- | source/QXmppIq.cpp | 7 |
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; |
