aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppBindIq.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/QXmppBindIq.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/QXmppBindIq.cpp')
-rw-r--r--src/base/QXmppBindIq.cpp14
1 files changed, 7 insertions, 7 deletions
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