summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2020-11-30 16:03:21 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-12-05 07:18:38 +0000
commitca389cdecffd821570e8e569e2d4c082ea586d99 (patch)
tree882c144c1fca6054184b0ed2a3489cd4af73a9f2 /src/corelib/doc
parent622efb8ecc2e7f25ddf7d6a54b8a3d3ac650916e (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 Task-number: QTBUG-87962 Change-Id: Ie9e8ef47a85d0867c2fa63889a60cafbe76ee47a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 2eb7d6073d5132a8bf269f5c6fc9f89fde446ab5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/corelib/doc')
-rw-r--r--src/corelib/doc/snippets/code/src_corelib_text_qbytearray.cpp13
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]
}