summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/qcomplextext
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-06-22 15:34:48 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-06-25 10:14:24 +0200
commite721ec269e972ea2754cb9bd27fb73b72ed53c7b (patch)
treeb09bb4ca8fe18d528a0a88cb310ecd1f8dc9216f /tests/auto/other/qcomplextext
parentb62f32a4dd87010e4c51d33ef440e2fbba531361 (diff)
Use QList instead of QVector in other tests
Task-number: QTBUG-84469 Change-Id: I656c9f73bd2364be39ee67747524e7c4a25c0935 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/other/qcomplextext')
-rw-r--r--tests/auto/other/qcomplextext/tst_qcomplextext.cpp11
1 files changed, 6 insertions, 5 deletions
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<int> &resolvedLevels, const QVector<int> &visualOrder)
+static void testBidiString(const QString &data, int paragraphDirection,
+ const QList<int> &resolvedLevels, const QList<int> &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<int> resolvedLevels;
+ QList<int> resolvedLevels;
QList<QByteArray> levelParts = parts.at(3).split(' ');
for (const auto &p : levelParts) {
if (p == "x") {
@@ -410,7 +411,7 @@ void tst_QComplexText::bidiCharacterTest()
}
}
- QVector<int> visualOrder;
+ QList<int> visualOrder;
QList<QByteArray> 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<int> resolvedLevels;
- QVector<int> visualOrder;
+ QList<int> resolvedLevels;
+ QList<int> visualOrder;
while (!f.atEnd()) {
linenum++;