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.

Change-Id: Ib742538eb5d21c77fcae7ee9abb6d5329bbcfd63
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
(cherry picked from commit dea548ef040c95d6fd6796051b12f148372b0f22)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Dennis Oberst 2024-03-11 15:59:23 +01:00 committed by Qt Cherry-pick Bot
parent b6a5528369
commit 532e562b91

View File

@ -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