diff options
Diffstat (limited to 'tests/auto/corelib/global')
-rw-r--r-- | tests/auto/corelib/global/qglobal/tst_qglobal.cpp | 4 | ||||
-rw-r--r-- | tests/auto/corelib/global/qhooks/tst_qhooks.cpp | 2 | ||||
-rw-r--r-- | tests/auto/corelib/global/qrandomgenerator/tst_qrandomgenerator.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/corelib/global/qglobal/tst_qglobal.cpp b/tests/auto/corelib/global/qglobal/tst_qglobal.cpp index 4cfbdbde37..3c4bd3840e 100644 --- a/tests/auto/corelib/global/qglobal/tst_qglobal.cpp +++ b/tests/auto/corelib/global/qglobal/tst_qglobal.cpp @@ -93,7 +93,7 @@ void tst_QGlobal::qIsNull() void tst_QGlobal::for_each() { - QVector<int> list; + QList<int> list; list << 0 << 1 << 2 << 3 << 4 << 5; int counter = 0; @@ -112,7 +112,7 @@ void tst_QGlobal::for_each() // check whether we can pass a constructor as container argument counter = 0; - foreach (int i, QVector<int>(list)) { + foreach (int i, QList<int>(list)) { QCOMPARE(i, counter++); } QCOMPARE(counter, list.count()); diff --git a/tests/auto/corelib/global/qhooks/tst_qhooks.cpp b/tests/auto/corelib/global/qhooks/tst_qhooks.cpp index 5fa7566e86..c06b9e7e3d 100644 --- a/tests/auto/corelib/global/qhooks/tst_qhooks.cpp +++ b/tests/auto/corelib/global/qhooks/tst_qhooks.cpp @@ -81,7 +81,7 @@ void tst_QHooks::testAddRemoveObject() QCOMPARE(objectCount, 0); } -static QVector<QString> hookOrder; +static QList<QString> hookOrder; static QHooks::AddQObjectCallback existingAddHook = 0; static QHooks::RemoveQObjectCallback existingRemoveHook = 0; diff --git a/tests/auto/corelib/global/qrandomgenerator/tst_qrandomgenerator.cpp b/tests/auto/corelib/global/qrandomgenerator/tst_qrandomgenerator.cpp index 1c6e013adb..da0accad69 100644 --- a/tests/auto/corelib/global/qrandomgenerator/tst_qrandomgenerator.cpp +++ b/tests/auto/corelib/global/qrandomgenerator/tst_qrandomgenerator.cpp @@ -27,9 +27,9 @@ ****************************************************************************/ #include <QtTest> +#include <qlist.h> #include <qobject.h> #include <qrandom.h> -#include <qvector.h> #include <private/qrandom_p.h> #include <algorithm> @@ -621,7 +621,7 @@ void tst_QRandomGenerator::boundedQuality() { // test the quality of the generator - QVector<quint32> buffer(BufferCount, 0xcdcdcdcd); + QList<quint32> buffer(BufferCount, 0xcdcdcdcd); generate(buffer.begin(), buffer.end(), [&] { return rng.bounded(Bound); }); for (quint32 value : qAsConst(buffer)) { |