Deprecate QQueue::swap(i, j)

QList::swapItemsAt() is the replacement.

Change-Id: Id0f194f9b63fd34c612f15e7952c33564f90120c
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Lars Knoll 2019-05-10 09:36:01 +02:00
parent 0fb30652b5
commit 9dc1edb314

View File

@ -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(); }