From 5f813f8a4bbe1e075daad7b3933829044befffb4 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Mon, 5 Sep 2022 20:37:05 +0200 Subject: Reformat code --- src/base/QXmppNonSASLAuth.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/base/QXmppNonSASLAuth.cpp') 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 -- cgit v1.2.3