diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-05-23 16:33:27 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-05-26 00:11:40 +0200 |
commit | e61b7574e0413c3ea35d292ac0015eec27270dd2 (patch) | |
tree | a0439a4760fdf037e16b2b65a721684757f4f9ed /src/corelib | |
parent | e4f2f0e125d20f3134fc28af42034ff1806d8141 (diff) |
q20functional.h: transitively include <functional>
We don't want to require users to say
#include <functional>
#include <q20functional.h>
because that would leave duplicated <functional> includes after a
mechanical s/q20functional.h/functional/. Mechanical transformation is
the major design goal of the qNN namespaces, so fix this before we use
the header in ever more places.
Pick-to: 6.3
Change-Id: Id258c36a042214f41b737fb7ab60906cc8e76ca6
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/global/q20functional.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/global/q20functional.h b/src/corelib/global/q20functional.h index 787b3ec035..13e6c9e090 100644 --- a/src/corelib/global/q20functional.h +++ b/src/corelib/global/q20functional.h @@ -23,6 +23,8 @@ // We mean it. // +#include <functional> + QT_BEGIN_NAMESPACE namespace q20 { |