diff options
| author | Melvin Keskin <melvo@olomono.de> | 2022-01-08 08:26:46 +0000 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-01-15 14:04:15 +0100 |
| commit | fd11e024a6079be3e0bc62911b6e3070c7553224 (patch) | |
| tree | 199a3d658bc1641259faffd588534788fadb05dd /src/client/QXmppPubSubManager.h | |
| parent | ee1ea9091f128164f91d29d7a3598d792326c1a7 (diff) | |
| download | qxmpp-fd11e024a6079be3e0bc62911b6e3070c7553224.tar.gz | |
Run 'clang-format' on all files
Diffstat (limited to 'src/client/QXmppPubSubManager.h')
| -rw-r--r-- | src/client/QXmppPubSubManager.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/client/QXmppPubSubManager.h b/src/client/QXmppPubSubManager.h index c34a1f72..c00064b4 100644 --- a/src/client/QXmppPubSubManager.h +++ b/src/client/QXmppPubSubManager.h @@ -136,11 +136,11 @@ QFuture<QXmppPubSubManager::ItemResult<T>> QXmppPubSubManager::requestItem(const using Error = QXmppStanza::Error; return chainIq(client()->sendIq(requestItemsIq(jid, nodeName, { itemId })), this, [](QXmppPubSubIq<T> &&iq) -> ItemResult<T> { - if (!iq.items().isEmpty()) { - return iq.items().constFirst(); - } - return Error(Error::Cancel, Error::ItemNotFound, QStringLiteral("No such item has been found.")); - }); + if (!iq.items().isEmpty()) { + return iq.items().constFirst(); + } + return Error(Error::Cancel, Error::ItemNotFound, QStringLiteral("No such item has been found.")); + }); } /// @@ -176,11 +176,11 @@ QFuture<QXmppPubSubManager::ItemsResult<T>> QXmppPubSubManager::requestItems(con using namespace QXmpp::Private; return chainIq(client()->sendIq(requestItemsIq(jid, nodeName, itemIds)), this, [](QXmppPubSubIq<T> &&iq) -> ItemsResult<T> { - return Items<T> { - iq.items(), - iq.itemsContinuation(), - }; - }); + return Items<T> { + iq.items(), + iq.itemsContinuation(), + }; + }); } /// |
