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/QXmppStreamInitiationIq.cpp | |
| parent | 4c60b13e0b8011e4e0b093a690e939f3b23e2436 (diff) | |
| download | qxmpp-5f813f8a4bbe1e075daad7b3933829044befffb4.tar.gz | |
Reformat code
Diffstat (limited to 'src/base/QXmppStreamInitiationIq.cpp')
| -rw-r--r-- | src/base/QXmppStreamInitiationIq.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/base/QXmppStreamInitiationIq.cpp b/src/base/QXmppStreamInitiationIq.cpp index 56c31024..b3c93c8c 100644 --- a/src/base/QXmppStreamInitiationIq.cpp +++ b/src/base/QXmppStreamInitiationIq.cpp @@ -70,10 +70,11 @@ void QXmppStreamInitiationIq::parseElementFromChild(const QDomElement &element) QDomElement siElement = element.firstChildElement(QStringLiteral("si")); m_siId = siElement.attribute(QStringLiteral("id")); m_mimeType = siElement.attribute(QStringLiteral("mime-type")); - if (siElement.attribute(QStringLiteral("profile")) == ns_stream_initiation_file_transfer) + if (siElement.attribute(QStringLiteral("profile")) == ns_stream_initiation_file_transfer) { m_profile = FileTransfer; - else + } else { m_profile = None; + } QDomElement itemElement = siElement.firstChildElement(); while (!itemElement.isNull()) { @@ -92,10 +93,12 @@ void QXmppStreamInitiationIq::toXmlElementFromChild(QXmlStreamWriter *writer) co writer->writeDefaultNamespace(ns_stream_initiation); helperToXmlAddAttribute(writer, QStringLiteral("id"), m_siId); helperToXmlAddAttribute(writer, QStringLiteral("mime-type"), m_mimeType); - if (m_profile == FileTransfer) + if (m_profile == FileTransfer) { helperToXmlAddAttribute(writer, QStringLiteral("profile"), ns_stream_initiation_file_transfer); - if (!m_fileInfo.isNull()) + } + if (!m_fileInfo.isNull()) { m_fileInfo.toXml(writer); + } if (!m_featureForm.isNull()) { writer->writeStartElement(QStringLiteral("feature")); writer->writeDefaultNamespace(ns_feature_negotiation); |
