diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-06-27 11:22:41 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-07-06 21:31:30 +0200 |
commit | e5fbe10647d35e4c27413a29a08376e3335e16b0 (patch) | |
tree | 4ad941a4baceb38c99cec62483678b4b6a88f8ea /src/corelib/tools/qlist.qdoc | |
parent | 792cb3989af2918f6a2878c22db51a009310756f (diff) |
Small fixes to the QList documentation
Change-Id: Ic839f7859912eb48bb192755d6f10536a0a73f8e
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/corelib/tools/qlist.qdoc')
-rw-r--r-- | src/corelib/tools/qlist.qdoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/tools/qlist.qdoc b/src/corelib/tools/qlist.qdoc index 047c418469..8d1280a2ea 100644 --- a/src/corelib/tools/qlist.qdoc +++ b/src/corelib/tools/qlist.qdoc @@ -592,9 +592,9 @@ the list. From Qt 5.7, the capacity is preserved. To shed all capacity, swap with a default-constructed list: \code - QList<T> v ...; - QList<T>().swap(v); - Q_ASSERT(v.capacity() == 0); + QList<T> l ...; + QList<T>().swap(l); + Q_ASSERT(l.capacity() == 0); \endcode or call squeeze(). |