diff options
Diffstat (limited to 'src/base/QXmppPingIq.cpp')
| -rw-r--r-- | src/base/QXmppPingIq.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/QXmppPingIq.cpp b/src/base/QXmppPingIq.cpp index e788e619..f277aae6 100644 --- a/src/base/QXmppPingIq.cpp +++ b/src/base/QXmppPingIq.cpp @@ -34,14 +34,14 @@ QXmppPingIq::QXmppPingIq() : QXmppIq(QXmppIq::Get) bool QXmppPingIq::isPingIq(const QDomElement &element) { - QDomElement pingElement = element.firstChildElement(QSL("ping")); - return (element.attribute(QSL("type")) == QSL("get") && + QDomElement pingElement = element.firstChildElement(QStringLiteral("ping")); + return (element.attribute(QStringLiteral("type")) == QStringLiteral("get") && pingElement.namespaceURI() == ns_ping); } void QXmppPingIq::toXmlElementFromChild(QXmlStreamWriter *writer) const { - writer->writeStartElement(QSL("ping")); + writer->writeStartElement(QStringLiteral("ping")); writer->writeDefaultNamespace(ns_ping); writer->writeEndElement(); } |
