diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2020-11-30 16:03:21 +0100 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2020-12-05 05:06:28 +0100 |
commit | 2eb7d6073d5132a8bf269f5c6fc9f89fde446ab5 (patch) | |
tree | cbb9be3752e46c51c57a9c36607ca0ed508e7aed /src/corelib/doc | |
parent | aab5c8e5486a6484feddfae0b04fd39fd244d9b9 (diff) |
QByteArray: update documentation
The QByteArray documentation is extended to align with QList and
QString regarding common wording and ideas:
- Extend general class description
- Revise description of several methods
- Wrap descriptions at 80 characters
Pick-to: 6.0
Task-number: QTBUG-87962
Change-Id: Ie9e8ef47a85d0867c2fa63889a60cafbe76ee47a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/doc')
-rw-r--r-- | src/corelib/doc/snippets/code/src_corelib_text_qbytearray.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/corelib/doc/snippets/code/src_corelib_text_qbytearray.cpp b/src/corelib/doc/snippets/code/src_corelib_text_qbytearray.cpp index 625f34e151..d86eb39290 100644 --- a/src/corelib/doc/snippets/code/src_corelib_text_qbytearray.cpp +++ b/src/corelib/doc/snippets/code/src_corelib_text_qbytearray.cpp @@ -503,17 +503,4 @@ qDebug(ba.constData()); //! [53] QByteArray ba = QByteArrayLiteral("byte array contents"); //! [53] - -//! [54] -QByteArray ba("abc"); -const char big[10] = "abc"; -ba.compare(big); // returns -1, big is longer than ba - -// In contrast: -const char arr[] = "abc"; -ba.compare(arr); // returns 0, both have the same size and data - -const char *str = "abc"; -ba.compare(str); // returns 0, the size is determined by scanning for '\0' -//! [54] } |