diff options
author | hjk <[email protected]> | 2025-04-09 10:36:39 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2025-04-10 08:11:05 +0000 |
commit | 6af62f8a66ac3f9e09584d287a738cd1b3116395 (patch) | |
tree | 005836ecfbae4bad5ddf53fd72e71796822a9325 /tests/auto/elfmap/tst_elfmap.cpp | |
parent | 65ab0ff4a3edcca5eb383e5eb32007fd4bd28947 (diff) |
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/auto/elfmap/tst_elfmap.cpp')
-rw-r--r-- | tests/auto/elfmap/tst_elfmap.cpp | 8 |
1 files changed, 4 insertions, 4 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); |