summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-11-23 15:57:11 +0100
committerMarc Mutz <marc.mutz@qt.io>2023-11-24 11:09:54 +0100
commit54f49803dedfcfb93b89a2262c04ecbcce073c88 (patch)
tree1ce6648f25af335942aa874fb9476724df1b00b1
parentd39353085e4079ca1eadd787039f7746335225e8 (diff)
String-ish: Add missing <string_view> #includes
Don't depend on transitive includes. Amends 96d67da420697cee10bdc537a1a592f6f22e2b8f. Change-Id: I3ec93e4d786af0babd36bb71a15222ffc3538e38 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r--src/corelib/text/qbytearrayview.h1
-rw-r--r--src/corelib/text/qstring.h1
-rw-r--r--src/corelib/text/qstringview.h1
-rw-r--r--src/corelib/text/qutf8stringview.h1
4 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/text/qbytearrayview.h b/src/corelib/text/qbytearrayview.h
index 081cdbbd76..d8ad65ae1e 100644
--- a/src/corelib/text/qbytearrayview.h
+++ b/src/corelib/text/qbytearrayview.h
@@ -8,6 +8,7 @@
#include <QtCore/qarraydata.h>
#include <string>
+#include <string_view>
#include <QtCore/q20type_traits.h>
QT_BEGIN_NAMESPACE
diff --git a/src/corelib/text/qstring.h b/src/corelib/text/qstring.h
index a0ec0c2afd..3e28d7727c 100644
--- a/src/corelib/text/qstring.h
+++ b/src/corelib/text/qstring.h
@@ -25,6 +25,7 @@
#include <string>
#include <iterator>
#include <QtCore/q20memory.h>
+#include <string_view>
#include <stdarg.h>
diff --git a/src/corelib/text/qstringview.h b/src/corelib/text/qstringview.h
index e27f90c167..3d1853c7a0 100644
--- a/src/corelib/text/qstringview.h
+++ b/src/corelib/text/qstringview.h
@@ -10,6 +10,7 @@
#include <QtCore/qstringalgorithms.h>
#include <string>
+#include <string_view>
#include <QtCore/q20type_traits.h>
#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
diff --git a/src/corelib/text/qutf8stringview.h b/src/corelib/text/qutf8stringview.h
index 0ea6927005..1230e17484 100644
--- a/src/corelib/text/qutf8stringview.h
+++ b/src/corelib/text/qutf8stringview.h
@@ -13,6 +13,7 @@
#include <QtCore/qbytearrayview.h>
#include <string>
+#include <string_view>
#include <QtCore/q20type_traits.h>
QT_BEGIN_NAMESPACE