From 76e1d99be97a9cf9ebc00bdf73c4ea648f36d076 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 25 Mar 2010 10:08:37 +0000 Subject: QXmppPingIq::isPingIq should take a const QDomElement& as argument --- source/QXmppPingIq.cpp | 2 +- source/QXmppPingIq.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source') 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 -- cgit v1.2.3