From e721ec269e972ea2754cb9bd27fb73b72ed53c7b Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 22 Jun 2020 15:34:48 +0200 Subject: Use QList instead of QVector in other tests Task-number: QTBUG-84469 Change-Id: I656c9f73bd2364be39ee67747524e7c4a25c0935 Reviewed-by: Lars Knoll --- tests/auto/other/qcomplextext/tst_qcomplextext.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tests/auto/other/qcomplextext') diff --git a/tests/auto/other/qcomplextext/tst_qcomplextext.cpp b/tests/auto/other/qcomplextext/tst_qcomplextext.cpp index 9ca61a69b4..1ba211aa0a 100644 --- a/tests/auto/other/qcomplextext/tst_qcomplextext.cpp +++ b/tests/auto/other/qcomplextext/tst_qcomplextext.cpp @@ -288,7 +288,8 @@ void tst_QComplexText::bidiCursor_PDF() QVERIFY(line.cursorToX(size) == line.cursorToX(size - 1)); } -static void testBidiString(const QString &data, int paragraphDirection, const QVector &resolvedLevels, const QVector &visualOrder) +static void testBidiString(const QString &data, int paragraphDirection, + const QList &resolvedLevels, const QList &visualOrder) { Q_UNUSED(resolvedLevels); @@ -398,7 +399,7 @@ void tst_QComplexText::bidiCharacterTest() int paragraphDirection = parts.at(1).toInt(); // int resolvedParagraphLevel = parts.at(2).toInt(); - QVector resolvedLevels; + QList resolvedLevels; QList levelParts = parts.at(3).split(' '); for (const auto &p : levelParts) { if (p == "x") { @@ -410,7 +411,7 @@ void tst_QComplexText::bidiCharacterTest() } } - QVector visualOrder; + QList visualOrder; QList orderParts = parts.at(4).split(' '); for (const auto &p : orderParts) { bool ok; @@ -470,8 +471,8 @@ void tst_QComplexText::bidiTest() f.open(QIODevice::ReadOnly); int linenum = 0; - QVector resolvedLevels; - QVector visualOrder; + QList resolvedLevels; + QList visualOrder; while (!f.atEnd()) { linenum++; -- cgit v1.2.3