aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppPubSubIq.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/QXmppPubSubIq.cpp
parent99b850a3008bbb03d3449d683adb87839f7d5c4b (diff)
downloadqxmpp-57f1b775197aed1d32e98b0299c0999339a7d5f6.tar.gz
Run clang-format also on all cpp files
Diffstat (limited to 'src/base/QXmppPubSubIq.cpp')
-rw-r--r--src/base/QXmppPubSubIq.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/base/QXmppPubSubIq.cpp b/src/base/QXmppPubSubIq.cpp
index 9ef3c952..29155fbf 100644
--- a/src/base/QXmppPubSubIq.cpp
+++ b/src/base/QXmppPubSubIq.cpp
@@ -178,8 +178,7 @@ void QXmppPubSubIq::parseElementFromChild(const QDomElement &element)
case QXmppPubSubIq::PublishQuery:
case QXmppPubSubIq::RetractQuery:
childElement = queryElement.firstChildElement("item");
- while (!childElement.isNull())
- {
+ while (!childElement.isNull()) {
QXmppPubSubItem item;
item.parse(childElement);
d->items << item;
@@ -206,8 +205,7 @@ void QXmppPubSubIq::toXmlElementFromChild(QXmlStreamWriter *writer) const
helperToXmlAddAttribute(writer, "node", d->queryNode);
// write contents
- switch (d->queryType)
- {
+ switch (d->queryType) {
case QXmppPubSubIq::ItemsQuery:
case QXmppPubSubIq::PublishQuery:
case QXmppPubSubIq::RetractQuery: