aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppNonSASLAuth.cpp
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2022-09-05 20:37:05 +0200
committerLinus Jahn <lnj@kaidan.im>2022-09-06 00:46:56 +0200
commit5f813f8a4bbe1e075daad7b3933829044befffb4 (patch)
tree20102aa665b03cfb6dfe0c6ece94938320b6430e /src/base/QXmppNonSASLAuth.cpp
parent4c60b13e0b8011e4e0b093a690e939f3b23e2436 (diff)
downloadqxmpp-5f813f8a4bbe1e075daad7b3933829044befffb4.tar.gz
Reformat code
Diffstat (limited to 'src/base/QXmppNonSASLAuth.cpp')
-rw-r--r--src/base/QXmppNonSASLAuth.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/base/QXmppNonSASLAuth.cpp b/src/base/QXmppNonSASLAuth.cpp
index dfffccef..6e4efd5c 100644
--- a/src/base/QXmppNonSASLAuth.cpp
+++ b/src/base/QXmppNonSASLAuth.cpp
@@ -110,14 +110,18 @@ void QXmppNonSASLAuthIq::toXmlElementFromChild(QXmlStreamWriter *writer) const
{
writer->writeStartElement(QStringLiteral("query"));
writer->writeDefaultNamespace(ns_auth);
- if (!m_username.isEmpty())
+ if (!m_username.isEmpty()) {
writer->writeTextElement(QStringLiteral("username"), m_username);
- if (!m_digest.isEmpty())
+ }
+ if (!m_digest.isEmpty()) {
writer->writeTextElement(QStringLiteral("digest"), m_digest.toHex());
- if (!m_password.isEmpty())
+ }
+ if (!m_password.isEmpty()) {
writer->writeTextElement(QStringLiteral("password"), m_password);
- if (!m_resource.isEmpty())
+ }
+ if (!m_resource.isEmpty()) {
writer->writeTextElement(QStringLiteral("resource"), m_resource);
+ }
writer->writeEndElement();
}
/// \endcond