diff options
author | Geir Vattekar <geir.vattekar@nokia.com> | 2011-08-23 09:52:16 (GMT) |
---|---|---|
committer | Geir Vattekar <geir.vattekar@nokia.com> | 2011-08-23 09:52:16 (GMT) |
commit | 04addd57742141f3f937722c1477ec7152bb888b (patch) | |
tree | 71681bd1c92b0ccccae22385388cf9ef9126d2c4 /src/corelib | |
parent | 78c8b5f1cfe11fd1a65b91bc6b0f9be7e9e8c1c5 (diff) | |
download | Qt-04addd57742141f3f937722c1477ec7152bb888b.zip Qt-04addd57742141f3f937722c1477ec7152bb888b.tar.gz Qt-04addd57742141f3f937722c1477ec7152bb888b.tar.bz2 |
Doc: Said that QList::clear deallocates memory
Task-number: QTBUG-18271
Reviewed-by: David Boddie
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/tools/qlist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qlist.cpp b/src/corelib/tools/qlist.cpp index e68ddd5..18bfe24 100644 --- a/src/corelib/tools/qlist.cpp +++ b/src/corelib/tools/qlist.cpp @@ -460,8 +460,8 @@ void **QListData::erase(void **xi) Note that the internal array only ever gets bigger over the life of the list. It never shrinks. The internal array is deallocated - by the destructor and by the assignment operator, when one list - is assigned to another. + by the destructor, by clear(), and by the assignment operator, + when one list is assigned to another. Here's an example of a QList that stores integers and a QList that stores QDate values: |