From 9dc1edb3146e2ffd85c357f950a83751ef265549 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 10 May 2019 09:36:01 +0200 Subject: Deprecate QQueue::swap(i, j) QList::swapItemsAt() is the replacement. Change-Id: Id0f194f9b63fd34c612f15e7952c33564f90120c Reviewed-by: Simon Hausmann --- src/corelib/tools/qqueue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/tools/qqueue.h') 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::swap, // because we don't want to make swap(QList&) available. - inline void swap(int i, int j) { QList::swap(i, j); } + Q_DECL_DEPRECATED inline void swap(int i, int j) { QList::swapItemsAt(i, j); } #endif inline void enqueue(const T &t) { QList::append(t); } inline T dequeue() { return QList::takeFirst(); } -- cgit v1.2.3