Skip to content

Commit

Permalink
Merge branch '1.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
lnjX committed Mar 11, 2023
2 parents ba05e3e + 366a229 commit d679ad1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/base/QXmppPubSubIq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class PubSubIqPrivate : public QSharedData
std::optional<QXmppResultSetReply> itemsContinuation;
};

}
} // namespace QXmpp::Private

///
/// Constructs a PubSub IQ.
Expand Down
6 changes: 4 additions & 2 deletions src/base/compat/QXmppPubSubIq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/client/QXmppPubSubManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include "QXmppClient.h"
#include "QXmppConstants_p.h"
#include "QXmppPubSubAffiliation.h"
#include "QXmppPubSubEventHandler.h"
#include "QXmppPubSubBaseItem.h"
#include "QXmppPubSubEventHandler.h"
#include "QXmppPubSubSubscribeOptions.h"
#include "QXmppPubSubSubscription.h"
#include "QXmppStanza.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/qxmpppubsubevent/tst_qxmpppubsubevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// SPDX-License-Identifier: LGPL-2.1-or-later

#include "QXmppDataForm.h"
#include "QXmppPubSubEvent.h"
#include "QXmppPubSubBaseItem.h"
#include "QXmppPubSubEvent.h"

#include "pubsubutil.h"
#include "util.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/qxmpppubsubiq/tst_qxmpppubsubiq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
//
// SPDX-License-Identifier: LGPL-2.1-or-later

#include "QXmppPubSubIq_p.h"
#include "QXmppPubSubBaseItem.h"
#include "QXmppPubSubIq_p.h"
#include "QXmppPubSubSubscription.h"
#include "QXmppResultSet.h"

Expand Down
2 changes: 1 addition & 1 deletion tests/qxmpppubsubmanager/tst_qxmpppubsubmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include "QXmppClient.h"
#include "QXmppMessage.h"
#include "QXmppPubSubAffiliation.h"
#include "QXmppPubSubEventHandler.h"
#include "QXmppPubSubBaseItem.h"
#include "QXmppPubSubEventHandler.h"
#include "QXmppPubSubManager.h"
#include "QXmppPubSubPublishOptions.h"
#include "QXmppPubSubSubscribeOptions.h"
Expand Down

0 comments on commit d679ad1

Please sign in to comment.