diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-03-25 10:08:37 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-03-25 10:08:37 +0000 |
| commit | 76e1d99be97a9cf9ebc00bdf73c4ea648f36d076 (patch) | |
| tree | 96056b9da1e09701e1c95c13bcaf1146be29bd2b | |
| parent | 92366a2ac652d955666c2b55b440d780755fd803 (diff) | |
| download | qxmpp-76e1d99be97a9cf9ebc00bdf73c4ea648f36d076.tar.gz | |
QXmppPingIq::isPingIq should take a const QDomElement& as argument
| -rw-r--r-- | source/QXmppPingIq.cpp | 2 | ||||
| -rw-r--r-- | source/QXmppPingIq.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/QXmppPingIq.cpp b/source/QXmppPingIq.cpp index 3b29139d..aa72c873 100644 --- a/source/QXmppPingIq.cpp +++ b/source/QXmppPingIq.cpp @@ -31,7 +31,7 @@ QXmppPingIq::QXmppPingIq() : QXmppIq(QXmppIq::Get) { } -bool QXmppPingIq::isPingIq( QDomElement &element ) +bool QXmppPingIq::isPingIq(const QDomElement &element) { QDomElement pingElement = element.firstChildElement("ping"); return (element.attribute("type") == "get" && diff --git a/source/QXmppPingIq.h b/source/QXmppPingIq.h index 83b7db4d..a8bc425b 100644 --- a/source/QXmppPingIq.h +++ b/source/QXmppPingIq.h @@ -34,7 +34,7 @@ class QXmppPingIq : public QXmppIq public: QXmppPingIq(); void toXmlElementFromChild(QXmlStreamWriter *writer) const; - static bool isPingIq( QDomElement &element ); + static bool isPingIq(const QDomElement &element); }; #endif |
