diff options
author | Jerome Pasion <jerome.pasion@nokia.com> | 2010-10-13 11:12:34 (GMT) |
---|---|---|
committer | Jerome Pasion <jerome.pasion@nokia.com> | 2010-10-13 11:12:34 (GMT) |
commit | 1c86defda1d9cd3577898ec5f63c4d9bd250564b (patch) | |
tree | df8a76ba515770dc50b5f4ff81d003e985cc835d | |
parent | ad757b9407506808393511d1baf8381a57aac4ab (diff) | |
download | Qt-1c86defda1d9cd3577898ec5f63c4d9bd250564b.zip Qt-1c86defda1d9cd3577898ec5f63c4d9bd250564b.tar.gz Qt-1c86defda1d9cd3577898ec5f63c4d9bd250564b.tar.bz2 |
Fixed statement about const_iterator and some whitespace fixes.
Task-number: QTBUG-14252
Reviewed-by: David Boddie
-rw-r--r-- | src/corelib/tools/qlinkedlist.cpp | 4 | ||||
-rw-r--r-- | src/corelib/tools/qlist.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/tools/qlinkedlist.cpp b/src/corelib/tools/qlinkedlist.cpp index 909d940..7213c6e 100644 --- a/src/corelib/tools/qlinkedlist.cpp +++ b/src/corelib/tools/qlinkedlist.cpp @@ -254,7 +254,7 @@ QLinkedListData QLinkedListData::shared_null = { \sa insert() */ -/*! +/*! \fn bool QLinkedList::removeOne(const T &value) \since 4.4 @@ -830,7 +830,7 @@ QLinkedListData QLinkedListData::shared_null = { QLinkedList\<T\>::const_iterator allows you to iterate over a QLinkedList\<T\>. If you want modify the QLinkedList as you iterate - over it, you must use QLinkedList::const_iterator instead. It is + over it, you must use QLinkedList::iterator instead. It is generally good practice to use QLinkedList::const_iterator on a non-const QLinkedList as well, unless you need to change the QLinkedList through the iterator. Const iterators are slightly diff --git a/src/corelib/tools/qlist.cpp b/src/corelib/tools/qlist.cpp index 6cc6fc1..9ba3768 100644 --- a/src/corelib/tools/qlist.cpp +++ b/src/corelib/tools/qlist.cpp @@ -936,7 +936,7 @@ void **QListData::erase(void **xi) This function requires the value type to have an implementation of \c operator==(). - Note that QList uses 0-based indexes, just like C++ arrays. Negative + Note that QList uses 0-based indexes, just like C++ arrays. Negative indexes are not supported with the exception of the value mentioned above. |