diff options
author | Dennis Oberst <dennis.oberst@qt.io> | 2024-03-11 15:59:23 +0100 |
---|---|---|
committer | Dennis Oberst <dennis.oberst@qt.io> | 2024-03-12 22:27:21 +0100 |
commit | dea548ef040c95d6fd6796051b12f148372b0f22 (patch) | |
tree | 63bac6c957633c17fbddc72aa1bcea11f690ec8d /src/corelib/text | |
parent | 285a2a75b4342e73d3165378d7af6c48d2f06492 (diff) |
qstringalgorithms: include <iterator> in favor of <string.h>
The switch from <string> to <string.h> dropped the definition of
std::size. Include <iterator> since <string.h> is no longer used to
pull in std::size.
Amends: dc2ae08e02730ab795445bc047221aa56914f723.
Pick-to: 6.7
Change-Id: Ib742538eb5d21c77fcae7ee9abb6d5329bbcfd63
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'src/corelib/text')
-rw-r--r-- | src/corelib/text/qstringalgorithms.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/text/qstringalgorithms.h b/src/corelib/text/qstringalgorithms.h index 84c104eafd..538ae892b0 100644 --- a/src/corelib/text/qstringalgorithms.h +++ b/src/corelib/text/qstringalgorithms.h @@ -13,8 +13,7 @@ #endif #include <algorithm> // std::find - -#include <string.h> // for memchr +#include <iterator> // std::size #include <QtCore/q20type_traits.h> // q20::is_constant_evaluated |