From c672fdcadce13f0a2180576d89c8144818ccdbd1 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Fri, 23 Jul 2021 22:14:51 +0200 Subject: 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::const_iterator>()' --- tests/TestClient.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/TestClient.h') 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("")) { + text == QLatin1String("")) { return; } @@ -95,4 +97,4 @@ private: QList m_sentPackets; }; -#endif // CLIENTTESTING_H +#endif // CLIENTTESTING_H -- cgit v1.2.3