aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-10-13 12:05:14 +0200
committerMarc Mutz <marc.mutz@qt.io>2023-10-13 12:38:42 +0200
commitf5c6a578657ea167270357655d459d4c887c7187 (patch)
tree5c9bb70d5d84f5b33f467ba8724d003b4417b59e /src
parenta4cf8a0f27fb633fada9b3900922bd5fc5acc281 (diff)
Include what you need: <QPointer>
All these TUs relied on transitive includes of qpointer.h, maybe to a large extent via qevent.h, though, given that qevent.h is more or less the only public QtBase header that includes qpointer.h, something else seems to be at play here. Said qevent.h actually needs QPointer in-name-only, so a forward declaration would suffice. Prepare for qevent.h dropping the include. The algorithm I used was: If the TU mentions 'passiveGrabbers', the name of the QEvent function that returns QPointers, and the TU doesn't have qpointer.h included explicitly, include it. That may produce False Positives, but better safe than sorry. Otherwise, in src/, add an include to all source and header files which mention QPointer. Exception: if foo.h of a foo.cpp already includes it, don't include again. Task-number: QTBUG-117670 Change-Id: I49b637cc4ff478da510e52d999f3b76501ba6061 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/coap/qcoapqudpconnection_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coap/qcoapqudpconnection_p.h b/src/coap/qcoapqudpconnection_p.h
index 9be42d7..8fccaf0 100644
--- a/src/coap/qcoapqudpconnection_p.h
+++ b/src/coap/qcoapqudpconnection_p.h
@@ -9,6 +9,8 @@
#include <private/qcoapconnection_p.h>
#include <QtNetwork/qudpsocket.h>
+
+#include <QtCore/qpointer.h>
#include <QtCore/qqueue.h>
//