From 57f1b775197aed1d32e98b0299c0999339a7d5f6 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sun, 2 Feb 2020 18:14:27 +0100 Subject: Run clang-format also on all cpp files --- src/base/QXmppDiscoveryIq.cpp | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'src/base/QXmppDiscoveryIq.cpp') 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(); -- cgit v1.2.3