Add the note about data size to QByteArray::operator=(const char*)

Add the note about the way the str size is determined when using
QByteArray::operator=(const char*).

Pick-to: 6.6 6.5
Change-Id: I39b2d0fc2967832622fbf0c11b3ff6c7ff99b8f2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
(cherry picked from commit 32e2386b157effa5f253ffd669ed52471863823b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Alexey Edelev 2024-03-26 10:18:59 +01:00 committed by Qt Cherry-pick Bot
parent 137706fc31
commit 41ecbdf467

View File

@ -1333,6 +1333,9 @@ QByteArray &QByteArray::operator=(const QByteArray & other) noexcept
\overload \overload
Assigns \a str to this byte array. Assigns \a str to this byte array.
\a str is assumed to point to a null-terminated string, and its length is
determined dynamically.
*/ */
QByteArray &QByteArray::operator=(const char *str) QByteArray &QByteArray::operator=(const char *str)