summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2010-01-11 12:43:31 (GMT)
committerJesper Thomschutz <jesper.thomschutz@nokia.com>2010-01-13 09:25:39 (GMT)
commitecd7ceff04a9f26932a5cd3bbcd5e0eb426ff713 (patch)
treefcf4b05f3ffdb3c34bf64929b1bca60acea4ff92
parent03e14562078b1849b2fa03aeef71c3debd2e95ee (diff)
downloadQt-ecd7ceff04a9f26932a5cd3bbcd5e0eb426ff713.zip
Qt-ecd7ceff04a9f26932a5cd3bbcd5e0eb426ff713.tar.gz
Qt-ecd7ceff04a9f26932a5cd3bbcd5e0eb426ff713.tar.bz2
doc: Corrected explanation of when append() does nothing.
Task-number: QTBUG-7246 (cherry picked from commit 8e2c575f6383a69e9c1d4f069e3c8e3b219197b5)
-rw-r--r--src/corelib/tools/qbytearray.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/tools/qbytearray.cpp b/src/corelib/tools/qbytearray.cpp
index 517927a..6f29057 100644
--- a/src/corelib/tools/qbytearray.cpp
+++ b/src/corelib/tools/qbytearray.cpp
@@ -1591,8 +1591,9 @@ QByteArray& QByteArray::append(const char *str)
array and returns a reference to this byte array.
If \a len is negative, the length of the string will be determined
- automatically using qstrlen(). If \a len is zero or the length of the
- string is zero, nothing will be appended to the byte array.
+ automatically using qstrlen(). If \a len is zero or \a str is
+ null, nothing is appended to the byte array. Ensure that \a len is
+ \e not longer than \a str.
*/
QByteArray &QByteArray::append(const char *str, int len)