aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppDiscoveryIq.cpp
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2020-02-02 18:14:27 +0100
committerLNJ <lnj@kaidan.im>2020-02-03 00:11:55 +0100
commit57f1b775197aed1d32e98b0299c0999339a7d5f6 (patch)
treece5702781e15f3a5c438ab153edf06f51a501b29 /src/base/QXmppDiscoveryIq.cpp
parent99b850a3008bbb03d3449d683adb87839f7d5c4b (diff)
downloadqxmpp-57f1b775197aed1d32e98b0299c0999339a7d5f6.tar.gz
Run clang-format also on all cpp files
Diffstat (limited to 'src/base/QXmppDiscoveryIq.cpp')
-rw-r--r--src/base/QXmppDiscoveryIq.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/base/QXmppDiscoveryIq.cpp b/src/base/QXmppDiscoveryIq.cpp
index b38eec52..1451c674 100644
--- a/src/base/QXmppDiscoveryIq.cpp
+++ b/src/base/QXmppDiscoveryIq.cpp
@@ -261,14 +261,10 @@ void QXmppDiscoveryIq::parseElementFromChild(const QDomElement &element)
m_queryType = InfoQuery;
QDomElement itemElement = queryElement.firstChildElement();
- while (!itemElement.isNull())
- {
- if (itemElement.tagName() == "feature")
- {
+ while (!itemElement.isNull()) {
+ if (itemElement.tagName() == "feature") {
m_features.append(itemElement.attribute("var"));
- }
- else if (itemElement.tagName() == "identity")
- {
+ } else if (itemElement.tagName() == "identity") {
QXmppDiscoveryIq::Identity identity;
identity.setLanguage(itemElement.attribute("xml:lang"));
identity.setCategory(itemElement.attribute("category"));
@@ -286,18 +282,14 @@ void QXmppDiscoveryIq::parseElementFromChild(const QDomElement &element)
}
m_identities.append(identity);
- }
- else if (itemElement.tagName() == "item")
- {
+ } else if (itemElement.tagName() == "item") {
QXmppDiscoveryIq::Item item;
item.setJid(itemElement.attribute("jid"));
item.setName(itemElement.attribute("name"));
item.setNode(itemElement.attribute("node"));
m_items.append(item);
- }
- else if (itemElement.tagName() == "x" &&
- itemElement.namespaceURI() == ns_data)
- {
+ } else if (itemElement.tagName() == "x" &&
+ itemElement.namespaceURI() == ns_data) {
m_form.parse(itemElement);
}
itemElement = itemElement.nextSiblingElement();