diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2022-03-27 23:53:07 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2022-04-01 23:03:58 +0200 |
commit | d063b2b131222db92f88714882c690a20041e0fb (patch) | |
tree | 969a0d8ff394eca53b3e0f9a6dd0984412b47b45 /src/corelib/text | |
parent | ad7a738e6d9e878c5451939dbb2ba77f92e117b9 (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.qdoc | 4 | ||||
-rw-r--r-- | src/corelib/text/qstringview.cpp | 4 |
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. */ /*! |