summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/kernel/qpixelformat
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-06-23 10:04:16 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-06-25 10:13:12 +0200
commitd1612610e650ffd7f2fbdef535c431647f57f0ac (patch)
tree6545a46b6aa7e5f89d7b2abcb959a78fa4c114ed /tests/auto/gui/kernel/qpixelformat
parent8cd3ec4ee43365425be584a48ff2871bd0090ef8 (diff)
Use QList instead of QVector in gui tests
Task-number: QTBUG-84469 Change-Id: Ia86f39597de418dde6cd9ae3170ef919bd27416a Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/gui/kernel/qpixelformat')
-rw-r--r--tests/auto/gui/kernel/qpixelformat/tst_qpixelformat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/gui/kernel/qpixelformat/tst_qpixelformat.cpp b/tests/auto/gui/kernel/qpixelformat/tst_qpixelformat.cpp
index c02d7cd165..14d2b74491 100644
--- a/tests/auto/gui/kernel/qpixelformat/tst_qpixelformat.cpp
+++ b/tests/auto/gui/kernel/qpixelformat/tst_qpixelformat.cpp
@@ -56,8 +56,8 @@ void tst_QPixelFormat::testOperators()
void tst_QPixelFormat::testQVectorOfFormats()
{
- QVector<QPixelFormat> reallocedVector;
- QVector<QPixelFormat> reservedVector;
+ QList<QPixelFormat> reallocedVector;
+ QList<QPixelFormat> reservedVector;
reservedVector.reserve(QImage::NImageFormats);
for (int i = 0; i < QImage::NImageFormats; i++) {
if (i == 0 || i == 2) // skip invalid and monolsb