From bbfd625b6351f0a28fd1f2894ed92b8da6d97c97 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Wed, 27 Oct 2021 14:18:16 +0200 Subject: [PATCH] qglobal.h: Do not include algorithm is a rather heavy header, so we do not want to include it everywhere. It most likely was put into qglobal, because before C++11, swap could be found there. However, since C++11 it is located in , which we already include. Thus drop the superfluous include. [ChangeLog][QtCore][Potential source breaking change] The header is no longer transitively included with qglobal.h. If you used functionality from that header and relied on the transitive include, you will now need to explicitly add the header. Change-Id: Idc1912956b483d313dafd61b8f6a49d60eed8d3c Reviewed-by: Qt CI Bot Reviewed-by: Thiago Macieira --- src/corelib/global/qglobal.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index dd137c879a..9d78b4e130 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -143,8 +143,6 @@ static_assert(!std::is_convertible_v, #ifdef __cplusplus -#include - #if !defined(QT_NAMESPACE) || defined(Q_MOC_RUN) /* user namespace */ # define QT_PREPEND_NAMESPACE(name) ::name