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 <thiago.macieira@intel.com>
This commit is contained in:
Marc Mutz 2025-06-14 00:07:18 +02:00
parent 00750cd8ba
commit 6600a332c6

View File

@ -5,7 +5,9 @@
#ifndef QSCOPEGUARD_H #ifndef QSCOPEGUARD_H
#define QSCOPEGUARD_H #define QSCOPEGUARD_H
#include <QtCore/qglobal.h> #include <QtCore/qtclasshelpermacros.h>
#include <QtCore/qcompilerdetection.h>
#include <QtCore/qtconfigmacros.h>
#include <type_traits> #include <type_traits>
#include <utility> #include <utility>