diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-10-27 14:18:16 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-10-29 16:56:47 +0200 |
commit | bbfd625b6351f0a28fd1f2894ed92b8da6d97c97 (patch) | |
tree | dc47034a62e44ac403c5ad55b581f2c644baddc0 /src/corelib/global | |
parent | e7a1fbfc471503cd5252a4acba7277639e5b65c2 (diff) |
qglobal.h: Do not include <algorithm>
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
<utility>, which we already include. Thus drop the superfluous include.
[ChangeLog][QtCore][Potential source breaking change] The <algorithm>
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 <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qglobal.h | 2 |
1 files changed, 0 insertions, 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<std::nullptr_t, bool>, #ifdef __cplusplus -#include <algorithm> - #if !defined(QT_NAMESPACE) || defined(Q_MOC_RUN) /* user namespace */ # define QT_PREPEND_NAMESPACE(name) ::name |