diff options
author | Lars Knoll <lars.knoll@qt.io> | 2019-05-10 09:36:01 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2019-05-10 15:27:48 +0000 |
commit | 9dc1edb3146e2ffd85c357f950a83751ef265549 (patch) | |
tree | 198e8f5db989cfa3af509283f2884541f1500de1 /src/corelib/tools | |
parent | 0fb30652b54aa0d36b9720becd9f3c3deb7a7806 (diff) |
Deprecate QQueue::swap(i, j)
QList::swapItemsAt() is the replacement.
Change-Id: Id0f194f9b63fd34c612f15e7952c33564f90120c
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/corelib/tools')
-rw-r--r-- | src/corelib/tools/qqueue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qqueue.h b/src/corelib/tools/qqueue.h index 16229759ee..d5a60ada56 100644 --- a/src/corelib/tools/qqueue.h +++ b/src/corelib/tools/qqueue.h @@ -54,7 +54,7 @@ public: #ifndef Q_QDOC // bring in QList::swap(int, int). We cannot say using QList<T>::swap, // because we don't want to make swap(QList&) available. - inline void swap(int i, int j) { QList<T>::swap(i, j); } + Q_DECL_DEPRECATED inline void swap(int i, int j) { QList<T>::swapItemsAt(i, j); } #endif inline void enqueue(const T &t) { QList<T>::append(t); } inline T dequeue() { return QList<T>::takeFirst(); } |