From 6600a332c699b77f84233c563d1bbabe9e918b0f Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 14 Jun 2025 00:07:18 +0200 Subject: [PATCH] QScopeGuard: only include what you need ... not all of qglobal.h. [ChangeLog][Potentially Source-Incompatible Changes][QtCore] The qscopeguard.h header no longer includes qglobal.h, but only what it itself needs. A backwards-compatible fix is to not depend on transitive includes and include all you need explicitly. Pick-to: 6.10 Change-Id: I257ae4cbd36d331e2fbda7fa238dcbc26a75647c Reviewed-by: Thiago Macieira --- src/corelib/tools/qscopeguard.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/corelib/tools/qscopeguard.h b/src/corelib/tools/qscopeguard.h index 9be6634cc87..ca7aa864780 100644 --- a/src/corelib/tools/qscopeguard.h +++ b/src/corelib/tools/qscopeguard.h @@ -5,7 +5,9 @@ #ifndef QSCOPEGUARD_H #define QSCOPEGUARD_H -#include +#include +#include +#include #include #include