diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-09-05 20:37:05 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-09-06 00:46:56 +0200 |
| commit | 5f813f8a4bbe1e075daad7b3933829044befffb4 (patch) | |
| tree | 20102aa665b03cfb6dfe0c6ece94938320b6430e /src/base/QXmppNonSASLAuth.cpp | |
| parent | 4c60b13e0b8011e4e0b093a690e939f3b23e2436 (diff) | |
| download | qxmpp-5f813f8a4bbe1e075daad7b3933829044befffb4.tar.gz | |
Reformat code
Diffstat (limited to 'src/base/QXmppNonSASLAuth.cpp')
| -rw-r--r-- | src/base/QXmppNonSASLAuth.cpp | 12 |
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 |
