aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-03-25 10:08:37 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-03-25 10:08:37 +0000
commit76e1d99be97a9cf9ebc00bdf73c4ea648f36d076 (patch)
tree96056b9da1e09701e1c95c13bcaf1146be29bd2b
parent92366a2ac652d955666c2b55b440d780755fd803 (diff)
downloadqxmpp-76e1d99be97a9cf9ebc00bdf73c4ea648f36d076.tar.gz
QXmppPingIq::isPingIq should take a const QDomElement& as argument
-rw-r--r--source/QXmppPingIq.cpp2
-rw-r--r--source/QXmppPingIq.h2
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