summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@collabora.co.uk>2010-04-26 22:15:26 (GMT)
committerRobin Burchell <robin.burchell@collabora.co.uk>2010-04-26 22:15:26 (GMT)
commitb909816fa4f74677c205854ae898ee57677ca317 (patch)
treed7b55738acf645b77a35987804801f4985922ed3 /src
parent69b88e97a02b41f3ffb88cbac09a5096da6c520d (diff)
downloadQt-b909816fa4f74677c205854ae898ee57677ca317.zip
Qt-b909816fa4f74677c205854ae898ee57677ca317.tar.gz
Qt-b909816fa4f74677c205854ae898ee57677ca317.tar.bz2
Slight QList documentation fix.
Mentioning that the operation is constant time is fine, however, saying that it is fast because it preallocates 'to allow fast growth' seems a little bit confusing given these methods are related to item removal.
Diffstat (limited to 'src')
-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.