From 366a22985b946b70252ba5e6dc291dbfe8addd94 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sat, 11 Mar 2023 01:16:40 +0100 Subject: Run clang-format --- src/base/compat/QXmppPubSubIq.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/base/compat/QXmppPubSubIq.cpp') diff --git a/src/base/compat/QXmppPubSubIq.cpp b/src/base/compat/QXmppPubSubIq.cpp index 9df2fdf1..88c0665f 100644 --- a/src/base/compat/QXmppPubSubIq.cpp +++ b/src/base/compat/QXmppPubSubIq.cpp @@ -149,8 +149,9 @@ void QXmppPubSubIq::parseElementFromChild(const QDomElement &element) // determine query type const QString tagName = queryElement.tagName(); int queryType = PUBSUB_QUERIES.indexOf(queryElement.tagName()); - if (queryType > -1) + if (queryType > -1) { d->queryType = QueryType(queryType); + } d->queryJid = queryElement.attribute(QStringLiteral("jid")); d->queryNode = queryElement.attribute(QStringLiteral("node")); @@ -193,8 +194,9 @@ void QXmppPubSubIq::toXmlElementFromChild(QXmlStreamWriter *writer) const case QXmppPubSubIq::ItemsQuery: case QXmppPubSubIq::PublishQuery: case QXmppPubSubIq::RetractQuery: - for (const auto &item : d->items) + for (const auto &item : d->items) { item.toXml(writer); + } break; case QXmppPubSubIq::SubscriptionQuery: helperToXmlAddAttribute(writer, QStringLiteral("subid"), d->subscriptionId); -- cgit v1.2.3