From d063b2b131222db92f88714882c690a20041e0fb Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Sun, 27 Mar 2022 23:53:07 +0200 Subject: 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 --- src/corelib/text/qbytearrayview.qdoc | 4 ---- src/corelib/text/qstringview.cpp | 4 ---- 2 files changed, 8 deletions(-) (limited to 'src/corelib/text') 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. */ /*! -- cgit v1.2.3