diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2024-03-26 10:18:59 +0100 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2024-03-27 16:59:36 +0100 |
commit | 32e2386b157effa5f253ffd669ed52471863823b (patch) | |
tree | 004268282c8a705a86fb27c54e6fbf5da84c8073 | |
parent | 2913e7de5186fc4fd3576167304c214d30f78d2e (diff) |
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.7 6.6 6.5
Change-Id: I39b2d0fc2967832622fbf0c11b3ff6c7ff99b8f2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
-rw-r--r-- | src/corelib/text/qbytearray.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp index 522ae475e6..e6387e4bed 100644 --- a/src/corelib/text/qbytearray.cpp +++ b/src/corelib/text/qbytearray.cpp @@ -1349,6 +1349,9 @@ QByteArray &QByteArray::operator=(const QByteArray & other) noexcept \overload 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) |