summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qstack.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-06-26 08:21:15 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-06-29 12:35:09 +0200
commitb0f9c06a9b199a7474eb94a6292b5824364344b6 (patch)
tree15bfdcd6322d34b9dfeaf1f7b170219b0bab9fa0 /src/corelib/tools/qstack.cpp
parentbe1bb192955631c44a872014fcb631efc5fcfb8a (diff)
Use QList instead of QVector in corelib implementation
Omitting state machine and docs for now. Task-number: QTBUG-84469 Change-Id: Ibfa5e7035515773461f6cdbff35299315ef65737 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'src/corelib/tools/qstack.cpp')
-rw-r--r--src/corelib/tools/qstack.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/corelib/tools/qstack.cpp b/src/corelib/tools/qstack.cpp
index af72313a67e..849a474d2c3 100644
--- a/src/corelib/tools/qstack.cpp
+++ b/src/corelib/tools/qstack.cpp
@@ -61,10 +61,10 @@
The example will output 3, 2, 1 in that order.
- QStack inherits from QVector. All of QVector's functionality also
+ QStack inherits from QList. All of QList's functionality also
applies to QStack. For example, you can use isEmpty() to test
whether the stack is empty, and you can traverse a QStack using
- QVector's iterator classes (for example, QVectorIterator). But in
+ QList's iterator classes (for example, QListIterator). But in
addition, QStack provides three convenience functions that make
it easy to implement LIFO semantics: push(), pop(), and top().
@@ -73,7 +73,7 @@
won't let you, for example, store a QWidget as a value; instead,
store a QWidget *.
- \sa QVector, QQueue
+ \sa QList, QQueue
*/
/*!
@@ -89,7 +89,7 @@
Adds element \a t to the top of the stack.
- This is the same as QVector::append().
+ This is the same as QList::append().
\sa pop(), top()
*/
@@ -100,7 +100,7 @@
Returns a reference to the stack's top item. This function
assumes that the stack isn't empty.
- This is the same as QVector::last().
+ This is the same as QList::last().
\sa pop(), push(), isEmpty()
*/