aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppNonSASLAuth.cpp
diff options
context:
space:
mode:
authorJonah BrĂ¼chert <jbb.prv@gmx.de>2020-03-28 23:48:44 +0100
committerLNJ <lnj@kaidan.im>2020-03-29 00:03:43 +0100
commitecd3d0a1ce24750f725bbfd98330fc1498e327a5 (patch)
tree87ea55c304056837b9cf95c8fac58e3f4a77af62 /src/base/QXmppNonSASLAuth.cpp
parentefc82e3307ac28ca0eb9639274301e9cb350e257 (diff)
downloadqxmpp-ecd3d0a1ce24750f725bbfd98330fc1498e327a5.tar.gz
Expand QSL and QBL
So they don't leak into the public API
Diffstat (limited to 'src/base/QXmppNonSASLAuth.cpp')
-rw-r--r--src/base/QXmppNonSASLAuth.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/base/QXmppNonSASLAuth.cpp b/src/base/QXmppNonSASLAuth.cpp
index eebb5a2e..bccf7121 100644
--- a/src/base/QXmppNonSASLAuth.cpp
+++ b/src/base/QXmppNonSASLAuth.cpp
@@ -78,31 +78,31 @@ void QXmppNonSASLAuthIq::setResource(const QString &resource)
/// \cond
bool QXmppNonSASLAuthIq::isNonSASLAuthIq(const QDomElement &element)
{
- QDomElement queryElement = element.firstChildElement(QSL("query"));
+ QDomElement queryElement = element.firstChildElement(QStringLiteral("query"));
return queryElement.namespaceURI() == ns_auth;
}
void QXmppNonSASLAuthIq::parseElementFromChild(const QDomElement &element)
{
- QDomElement queryElement = element.firstChildElement(QSL("query"));
- m_username = queryElement.firstChildElement(QSL("username")).text();
- m_password = queryElement.firstChildElement(QSL("password")).text();
- m_digest = QByteArray::fromHex(queryElement.firstChildElement(QSL("digest")).text().toLatin1());
- m_resource = queryElement.firstChildElement(QSL("resource")).text();
+ QDomElement queryElement = element.firstChildElement(QStringLiteral("query"));
+ m_username = queryElement.firstChildElement(QStringLiteral("username")).text();
+ m_password = queryElement.firstChildElement(QStringLiteral("password")).text();
+ m_digest = QByteArray::fromHex(queryElement.firstChildElement(QStringLiteral("digest")).text().toLatin1());
+ m_resource = queryElement.firstChildElement(QStringLiteral("resource")).text();
}
void QXmppNonSASLAuthIq::toXmlElementFromChild(QXmlStreamWriter *writer) const
{
- writer->writeStartElement(QSL("query"));
+ writer->writeStartElement(QStringLiteral("query"));
writer->writeDefaultNamespace(ns_auth);
if (!m_username.isEmpty())
- writer->writeTextElement(QSL("username"), m_username);
+ writer->writeTextElement(QStringLiteral("username"), m_username);
if (!m_digest.isEmpty())
- writer->writeTextElement(QSL("digest"), m_digest.toHex());
+ writer->writeTextElement(QStringLiteral("digest"), m_digest.toHex());
if (!m_password.isEmpty())
- writer->writeTextElement(QSL("password"), m_password);
+ writer->writeTextElement(QStringLiteral("password"), m_password);
if (!m_resource.isEmpty())
- writer->writeTextElement(QSL("resource"), m_resource);
+ writer->writeTextElement(QStringLiteral("resource"), m_resource);
writer->writeEndElement();
}
/// \endcond