From ecd3d0a1ce24750f725bbfd98330fc1498e327a5 Mon Sep 17 00:00:00 2001 From: Jonah BrĂ¼chert Date: Sat, 28 Mar 2020 23:48:44 +0100 Subject: Expand QSL and QBL So they don't leak into the public API --- src/base/QXmppBindIq.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/base/QXmppBindIq.cpp') diff --git a/src/base/QXmppBindIq.cpp b/src/base/QXmppBindIq.cpp index 20d89074..6d86e719 100644 --- a/src/base/QXmppBindIq.cpp +++ b/src/base/QXmppBindIq.cpp @@ -68,25 +68,25 @@ void QXmppBindIq::setResource(const QString &resource) /// \cond bool QXmppBindIq::isBindIq(const QDomElement &element) { - QDomElement bindElement = element.firstChildElement(QSL("bind")); + QDomElement bindElement = element.firstChildElement(QStringLiteral("bind")); return (bindElement.namespaceURI() == ns_bind); } void QXmppBindIq::parseElementFromChild(const QDomElement &element) { - QDomElement bindElement = element.firstChildElement(QSL("bind")); - m_jid = bindElement.firstChildElement(QSL("jid")).text(); - m_resource = bindElement.firstChildElement(QSL("resource")).text(); + QDomElement bindElement = element.firstChildElement(QStringLiteral("bind")); + m_jid = bindElement.firstChildElement(QStringLiteral("jid")).text(); + m_resource = bindElement.firstChildElement(QStringLiteral("resource")).text(); } void QXmppBindIq::toXmlElementFromChild(QXmlStreamWriter *writer) const { - writer->writeStartElement(QSL("bind")); + writer->writeStartElement(QStringLiteral("bind")); writer->writeDefaultNamespace(ns_bind); if (!m_jid.isEmpty()) - helperToXmlAddTextElement(writer, QSL("jid"), m_jid); + helperToXmlAddTextElement(writer, QStringLiteral("jid"), m_jid); if (!m_resource.isEmpty()) - helperToXmlAddTextElement(writer, QSL("resource"), m_resource); + helperToXmlAddTextElement(writer, QStringLiteral("resource"), m_resource); writer->writeEndElement(); } /// \endcond -- cgit v1.2.3