From 30b881b3946a0a09da03d1d50f46251b33851d1b Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Wed, 5 Oct 2022 15:00:36 +0200 Subject: [PATCH] qforeach.h: do not include qglobal.h The qforeach.h header was extracted in ffcf4f400102aa3626bcf1dda6f8a703553f59f7, so this is not a new header. Still, it does not have any usages in Qt itself (except for the include in qglobal.h), and the influence of the user code should also be minimal, considering that Qt is built with QT_NO_FOREACH by default. [ChangeLog][QForeach][Potentially Source-Incompatible Changes] The qforeach.h header no longer includes qglobal.h. If you relied on the transitive include, you may have to include qglobal.h explicitly. Task-number: QTBUG-107046 Change-Id: I2588b2e774c456d926b6a63d0377e0a7991bf973 Reviewed-by: Marc Mutz --- src/corelib/global/qforeach.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/corelib/global/qforeach.h b/src/corelib/global/qforeach.h index e8396c4fb0..228c128fa8 100644 --- a/src/corelib/global/qforeach.h +++ b/src/corelib/global/qforeach.h @@ -1,11 +1,12 @@ -// Copyright (C) 2020 The Qt Company Ltd. +// Copyright (C) 2022 The Qt Company Ltd. // Copyright (C) 2019 Intel Corporation. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #ifndef QFOREACH_H #define QFOREACH_H -#include +#include +#include #include #include