summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2010-04-27 16:41:59 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2010-04-27 16:41:59 (GMT)
commit7eb7a125ea9f79dcfe3b0dc42d9d6017405e4b47 (patch)
treedb46498dba8b3bba865ed05f3e778f69ed2715be
parent7cfb1403dc66e9151edc5a6c9b723444f2584941 (diff)
parentb909816fa4f74677c205854ae898ee57677ca317 (diff)
downloadQt-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.cpp8
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.