diff options
| author | Linus Jahn <lnj@kaidan.im> | 2023-03-09 18:48:21 +0100 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2023-03-09 20:16:42 +0100 |
| commit | fcd8224256e38d50d4ec67b71c504dcb6e480e95 (patch) | |
| tree | 5753ff003919d3815698c630d96f92d824df546a /tests/pubsubutil.h | |
| parent | 18353901a2215376e2f0274a408ce2213c180f16 (diff) | |
| download | qxmpp-fcd8224256e38d50d4ec67b71c504dcb6e480e95.tar.gz | |
Rename PubSubItem -> PubSubBaseItem to be able to include old PubSubItem
Diffstat (limited to 'tests/pubsubutil.h')
| -rw-r--r-- | tests/pubsubutil.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/pubsubutil.h b/tests/pubsubutil.h index 20b02785..f8059a6c 100644 --- a/tests/pubsubutil.h +++ b/tests/pubsubutil.h @@ -5,17 +5,17 @@ #ifndef PUBSUBUTIL_H #define PUBSUBUTIL_H -#include "QXmppPubSubItem.h" +#include "QXmppPubSubBaseItem.h" #include <QDomElement> #include <QXmlStreamWriter> #include <QtTest/QTest> -class TestItem : public QXmppPubSubItem +class TestItem : public QXmppPubSubBaseItem { public: TestItem(const QString &id = {}) - : QXmppPubSubItem(id) + : QXmppPubSubBaseItem(id) { } @@ -34,7 +34,7 @@ public: static bool isItem(const QDomElement &element) { isItemCalled = true; - return QXmppPubSubItem::isItem(element, [](const QDomElement &payload) { + return QXmppPubSubBaseItem::isItem(element, [](const QDomElement &payload) { return payload.tagName() == "test-payload"; }); } |
