diff options
author | David Boddie <dboddie@trolltech.com> | 2010-04-27 16:41:59 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2010-04-27 16:41:59 (GMT) |
commit | 7eb7a125ea9f79dcfe3b0dc42d9d6017405e4b47 (patch) | |
tree | db46498dba8b3bba865ed05f3e778f69ed2715be | |
parent | 7cfb1403dc66e9151edc5a6c9b723444f2584941 (diff) | |
parent | b909816fa4f74677c205854ae898ee57677ca317 (diff) | |
download | Qt-7eb7a125ea9f79dcfe3b0dc42d9d6017405e4b47.zip Qt-7eb7a125ea9f79dcfe3b0dc42d9d6017405e4b47.tar.gz Qt-7eb7a125ea9f79dcfe3b0dc42d9d6017405e4b47.tar.bz2 |
Merge commit 'refs/merge-requests/577' of git://gitorious.org/qt/qt into integration
-rw-r--r-- | src/corelib/tools/qlist.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/corelib/tools/qlist.cpp b/src/corelib/tools/qlist.cpp index 6f5bb9b..6cc6fc1 100644 --- a/src/corelib/tools/qlist.cpp +++ b/src/corelib/tools/qlist.cpp @@ -853,9 +853,7 @@ void **QListData::erase(void **xi) same as takeAt(0). This function assumes the list is not empty. To avoid failure, call isEmpty() before calling this function. - This operation is very fast (\l{constant time}), because QList - preallocates extra space on both sides of its internal buffer to - allow for fast growth at both ends of the list. + This operation takes \l{constant time}. If you don't use the return value, removeFirst() is more efficient. @@ -870,9 +868,7 @@ void **QListData::erase(void **xi) not empty. To avoid failure, call isEmpty() before calling this function. - This operation is very fast (\l{constant time}), because QList - preallocates extra space on both sides of its internal buffer to - allow for fast growth at both ends of the list. + This operation takes \l{constant time}. If you don't use the return value, removeLast() is more efficient. |