diff options
author | Lars Knoll <lars.knoll@qt.io> | 2019-05-02 08:53:24 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2019-05-03 09:36:22 +0000 |
commit | f27f89f3357326f8cc3b6bbc560160e909af7ead (patch) | |
tree | ea8778991b82a0419be89ff0828dc1782242ca8b /tests/auto/corelib/tools/qlist | |
parent | f5de7896d78bb73eecbf65c2ac6864ccd8a86e0a (diff) |
Don't use deprecated API
Change-Id: Ic56c22a1be5e69b371991c3e9ad98a1106848e78
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/tools/qlist')
-rw-r--r-- | tests/auto/corelib/tools/qlist/tst_qlist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/tools/qlist/tst_qlist.cpp b/tests/auto/corelib/tools/qlist/tst_qlist.cpp index 16fb291bd2..995aa245d1 100644 --- a/tests/auto/corelib/tools/qlist/tst_qlist.cpp +++ b/tests/auto/corelib/tools/qlist/tst_qlist.cpp @@ -1457,11 +1457,11 @@ void tst_QList::swap() const list << T_FOO << T_BAR << T_BAZ; // swap - list.swap(0, 2); + list.swapItemsAt(0, 2); QCOMPARE(list, QList<T>() << T_BAZ << T_BAR << T_FOO); // swap again - list.swap(1, 2); + list.swapItemsAt(1, 2); QCOMPARE(list, QList<T>() << T_BAZ << T_FOO << T_BAR); QList<T> list2; |