summaryrefslogtreecommitdiffstats
path: root/src/corelib/text
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2022-03-27 23:53:07 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2022-04-01 23:03:58 +0200
commitd063b2b131222db92f88714882c690a20041e0fb (patch)
tree969a0d8ff394eca53b3e0f9a6dd0984412b47b45 /src/corelib/text
parentad7a738e6d9e878c5451939dbb2ba77f92e117b9 (diff)
QBAV/QSV: remove a historical note
Both QByteArray and QString can contain more than 2^32 elements on 64 bits platforms, so the warning does not apply any more. Change-Id: I4604c1fe225922a0df7e78135eeb5a1e2b84fea3 Pick-to: 6.2 6.3 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/text')
-rw-r--r--src/corelib/text/qbytearrayview.qdoc4
-rw-r--r--src/corelib/text/qstringview.cpp4
2 files changed, 0 insertions, 8 deletions
diff --git a/src/corelib/text/qbytearrayview.qdoc b/src/corelib/text/qbytearrayview.qdoc
index 76e04f9aaa..b70bb216b8 100644
--- a/src/corelib/text/qbytearrayview.qdoc
+++ b/src/corelib/text/qbytearrayview.qdoc
@@ -329,10 +329,6 @@
The return value will be a null QByteArray if and only if this byte array
view is null.
-
- \warning QByteArrayView can store data with more than 2\sup{31} bytes while
- QByteArray cannot. Calling this function on a byte array view for which size()
- returns a value greater than \c{INT_MAX / 2} constitutes undefined behavior.
*/
/*!
diff --git a/src/corelib/text/qstringview.cpp b/src/corelib/text/qstringview.cpp
index 83fb6b8b4f..e1f3ab814b 100644
--- a/src/corelib/text/qstringview.cpp
+++ b/src/corelib/text/qstringview.cpp
@@ -343,10 +343,6 @@ QT_BEGIN_NAMESPACE
Returns a deep copy of this string view's data as a QString.
The return value will be the null QString if and only if this string view is null.
-
- \warning QStringView can store strings with more than 2\sup{30} characters
- while QString cannot. Calling this function on a string view for which size()
- returns a value greater than \c{INT_MAX / 2} constitutes undefined behavior.
*/
/*!