diff options
| author | Linus Jahn <lnj@kaidan.im> | 2021-07-23 22:14:51 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2021-07-23 22:16:25 +0200 |
| commit | c672fdcadce13f0a2180576d89c8144818ccdbd1 (patch) | |
| tree | 07b9d590d044b047e3a53d759e318310be77d90e /tests/TestClient.h | |
| parent | 4ef275d1518876c5bdebc7b8ba6e53328113bd7e (diff) | |
| download | qxmpp-c672fdcadce13f0a2180576d89c8144818ccdbd1.tar.gz | |
tests: TestClient: Fix warning of missing include for destructors
MSVC warning:
C:\Qt\5.11\msvc2017_64\include\QtCore/qalgorithms.h(320): warning
C4150: deletion of pointer to incomplete type 'QXmppClientExtension';
no destructor called [C:\tst_qxmpprostermanager.vcxproj]
C:\projects\qxmpp\src\client\QXmppClient_p.h(43): note: see
declaration of 'QXmppClientExtension'
C:\Qt\5.11\msvc2017_64\include\QtCore/qalgorithms.h(328): note: see
reference to function template instantiation
'void qDeleteAll<QList<QXmppClientExtension *>::const_iterator>()'
Diffstat (limited to 'tests/TestClient.h')
| -rw-r--r-- | tests/TestClient.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/TestClient.h b/tests/TestClient.h index 662694c5..d11e1398 100644 --- a/tests/TestClient.h +++ b/tests/TestClient.h @@ -25,8 +25,10 @@ #define CLIENTTESTING_H #include "QXmppClient.h" +#include "QXmppClientExtension.h" // needed for qDeleteAll(d->extensions) #include "QXmppClient_p.h" #include "QXmppOutgoingClient.h" + #include "util.h" class TestClient : public QXmppClient @@ -80,7 +82,7 @@ private: void onLoggerMessage(QXmppLogger::MessageType type, const QString &text) { if (type != QXmppLogger::SentMessage || - text == QLatin1String("<r xmlns=\"urn:xmpp:sm:3\"/>")) { + text == QLatin1String("<r xmlns=\"urn:xmpp:sm:3\"/>")) { return; } @@ -95,4 +97,4 @@ private: QList<QString> m_sentPackets; }; -#endif // CLIENTTESTING_H +#endif // CLIENTTESTING_H |
