summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qlist/tst_qlist.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2019-05-03 11:53:18 +0200
committerLars Knoll <lars.knoll@qt.io>2019-05-05 17:34:43 +0000
commit82ddecfb17158c35de1d0740dd7ecd5562d41726 (patch)
tree42fb0ecc0760cf4d98542d41cd2899d6edcab71f /tests/auto/corelib/tools/qlist/tst_qlist.cpp
parentb5547e49cd1760ba5d100dcc720e6366cbd23f06 (diff)
Deprecate {to,from}Std{List,Vector}
ask our users to use the range constructors instead. This will allow us to remove the include dependency towards <list> and <vector> in Qt 6. Change-Id: Id90f2058432e19941de1fa847100a7920432ad71 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/tools/qlist/tst_qlist.cpp')
-rw-r--r--tests/auto/corelib/tools/qlist/tst_qlist.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qlist/tst_qlist.cpp b/tests/auto/corelib/tools/qlist/tst_qlist.cpp
index 995aa245d1..7fb3e67462 100644
--- a/tests/auto/corelib/tools/qlist/tst_qlist.cpp
+++ b/tests/auto/corelib/tools/qlist/tst_qlist.cpp
@@ -367,9 +367,11 @@ private slots:
void toSetOptimal() const;
void toSetMovable() const;
void toSetComplex() const;
+#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
void toStdListOptimal() const;
void toStdListMovable() const;
void toStdListComplex() const;
+#endif
void toVectorOptimal() const;
void toVectorMovable() const;
void toVectorComplex() const;
@@ -427,7 +429,9 @@ private:
template<typename T> void takeFirst() const;
template<typename T> void takeLast() const;
template<typename T> void toSet() const;
+#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
template<typename T> void toStdList() const;
+#endif
template<typename T> void toVector() const;
template<typename T> void value() const;
@@ -1633,6 +1637,7 @@ void tst_QList::toSetComplex() const
QCOMPARE(liveCount, Complex::getLiveCount());
}
+#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
template<typename T>
void tst_QList::toStdList() const
{
@@ -1669,6 +1674,7 @@ void tst_QList::toStdListComplex() const
toStdList<Complex>();
QCOMPARE(liveCount, Complex::getLiveCount());
}
+#endif
template<typename T>
void tst_QList::toVector() const