summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhjk <[email protected]>2025-04-09 10:36:39 +0200
committerhjk <[email protected]>2025-04-10 08:11:05 +0000
commit6af62f8a66ac3f9e09584d287a738cd1b3116395 (patch)
tree005836ecfbae4bad5ddf53fd72e71796822a9325 /tests
parent65ab0ff4a3edcca5eb383e5eb32007fd4bd28947 (diff)
Replace QVector by QListHEADmaster17.0
It's effectively the same in Qt 6, and QList is more direct. Change-Id: I0f23b765f2f8930a715e378212b9bb4f38fcef54 Reviewed-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/elfmap/tst_elfmap.cpp8
-rw-r--r--tests/auto/perfdata/tst_perfdata.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/elfmap/tst_elfmap.cpp b/tests/auto/elfmap/tst_elfmap.cpp
index 5b70758..9d27eee 100644
--- a/tests/auto/elfmap/tst_elfmap.cpp
+++ b/tests/auto/elfmap/tst_elfmap.cpp
@@ -100,7 +100,7 @@ private slots:
QCOMPARE(map.findElf(110), first);
PerfElfMap::ElfInfo second(file1, 105, 20, 0);
- QCOMPARE(registerElf(&map, second), QVector<PerfElfMap::ElfInfo>{first});
+ QCOMPARE(registerElf(&map, second), QList<PerfElfMap::ElfInfo>{first});
if (firstIsFile)
second.baseAddr = first.addr;
QCOMPARE(map.findElf(110), second);
@@ -109,7 +109,7 @@ private slots:
QCOMPARE(map.findElf(97), fragment1);
const PerfElfMap::ElfInfo third(file2, 100, 20, 0);
- QVector<PerfElfMap::ElfInfo> invalidatedByThird = {fragment1, second};
+ QList<PerfElfMap::ElfInfo> invalidatedByThird = {fragment1, second};
QCOMPARE(registerElf(&map, third), invalidatedByThird);
QCOMPARE(map.findElf(110), third);
QCOMPARE(map.findElf(110), third);
@@ -345,9 +345,9 @@ private slots:
}
private:
- QVector<PerfElfMap::ElfInfo> registerElf(PerfElfMap *map, const PerfElfMap::ElfInfo &info)
+ QList<PerfElfMap::ElfInfo> registerElf(PerfElfMap *map, const PerfElfMap::ElfInfo &info)
{
- QVector<PerfElfMap::ElfInfo> invalidated;
+ QList<PerfElfMap::ElfInfo> invalidated;
auto connection = connect(map, &PerfElfMap::aboutToInvalidate, this,
[&invalidated](const PerfElfMap::ElfInfo& other) { // clazy:exclude=lambda-in-connect
invalidated.push_back(other);
diff --git a/tests/auto/perfdata/tst_perfdata.cpp b/tests/auto/perfdata/tst_perfdata.cpp
index 5b6894c..9855172 100644
--- a/tests/auto/perfdata/tst_perfdata.cpp
+++ b/tests/auto/perfdata/tst_perfdata.cpp
@@ -173,7 +173,7 @@ void TestPerfData::testTracingData()
PerfParserTestClient client;
client.extractTrace(&output);
- const QVector<PerfParserTestClient::SampleEvent> samples = client.samples();
+ const QList<PerfParserTestClient::SampleEvent> samples = client.samples();
QVERIFY(samples.length() > 0);
for (const PerfParserTestClient::SampleEvent &sample : samples) {
QCOMPARE(sample.values.size(), 1);