summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qbytearray.cpp
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2010-01-11 12:43:31 (GMT)
committerMartin Smith <msmith@trolltech.com>2010-01-11 12:43:31 (GMT)
commit8e2c575f6383a69e9c1d4f069e3c8e3b219197b5 (patch)
tree2e13f84e351dbf4adea3ff5838e3d31480f394d8 /src/corelib/tools/qbytearray.cpp
parent51078f1ef008c8395ddb76ac2f444daa511a4507 (diff)
downloadQt-8e2c575f6383a69e9c1d4f069e3c8e3b219197b5.zip
Qt-8e2c575f6383a69e9c1d4f069e3c8e3b219197b5.tar.gz
Qt-8e2c575f6383a69e9c1d4f069e3c8e3b219197b5.tar.bz2
doc: Corrected explanation of when append() does nothing.
Task-number: QTBUG-7246
Diffstat (limited to 'src/corelib/tools/qbytearray.cpp')
-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 f4a81f2..d2fbf5a 100644
--- a/src/corelib/tools/qbytearray.cpp
+++ b/src/corelib/tools/qbytearray.cpp
@@ -1603,8 +1603,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)