summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@theqtcompany.com>2015-11-23 13:04:49 +0100
committerNico Vertriest <nico.vertriest@theqtcompany.com>2015-11-30 09:10:17 +0000
commit9b23e36bbdd44f443cff607b524b23fe66ffd9e1 (patch)
tree559b6b327d11a6cc2673d43b40fb007768a743c0 /src
parent949ed98b2b5db6aa4cc38b1d0f997ba049d3a8da (diff)
Doc: improvement in if condition about inserting item in list
Task-number: QTBUG-41708 Change-Id: Ibbb115a8ad81f7fba0ce162ae131d4843b19c188 Reviewed-by: Martin Smith <martin.smith@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qlist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qlist.cpp b/src/corelib/tools/qlist.cpp
index 8ed0da7ca0..5710f3925b 100644
--- a/src/corelib/tools/qlist.cpp
+++ b/src/corelib/tools/qlist.cpp
@@ -820,8 +820,8 @@ void **QListData::erase(void **xi)
/*! \fn void QList::insert(int i, const T &value)
- Inserts \a value at index position \a i in the list. If \a i
- is 0, the value is prepended to the list. If \a i is size(), the
+ Inserts \a value at index position \a i in the list. If \a i <= 0,
+ the value is prepended to the list. If \a i >= size(), the
value is appended to the list.
Example: