diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-07-16 17:04:14 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-08-14 09:57:21 +0200 |
commit | 72205c829b63736e016f4fc2bb0f8fc4bb2fee5e (patch) | |
tree | 2f9df1c8545a94909735a5152ac5991f2f3c0aa6 /src | |
parent | 57b94b58df474ebc268993291a669dbad21a1300 (diff) |
QQueue: purge deprecated API, swap(i, j)
Was deprecated in 5.14 although the relevant annotations won't show up
until 5.15.1.
Change-Id: I5b88bd109b9785d8170c616c619d478969536bbf
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/tools/qqueue.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/corelib/tools/qqueue.h b/src/corelib/tools/qqueue.h index 8dddf05352..862aa2ae2c 100644 --- a/src/corelib/tools/qqueue.h +++ b/src/corelib/tools/qqueue.h @@ -51,11 +51,6 @@ class QQueue : public QList<T> public: // compiler-generated special member functions are fine! inline void swap(QQueue<T> &other) noexcept { QList<T>::swap(other); } // prevent QList<->QQueue swaps -#if QT_DEPRECATED_SINCE(5, 14) && !defined(Q_QDOC) - // NOT using QList<T>::swap; it would make swap(QList&) available. - QT_DEPRECATED_VERSION_X_5_14("Use swapItemsAt(i, j) instead") - 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(); } inline T &head() { return QList<T>::first(); } |