From c30a07702d1bb9388ea21ee352ee74bf008e276d Mon Sep 17 00:00:00 2001 From: xavier2k6 <42386382+xavier2k6@users.noreply.github.com> Date: Mon, 30 Sep 2024 11:20:58 +0100 Subject: [PATCH] Replace QVector with QList Migrated last remnants of QVector to Qlist, reference https://github.com/qbittorrent/qBittorrent/pull/21016#issuecomment-2212403741 onward. PR #21407. --- src/app/qtlocalpeer/qtlockedfile.h | 4 ++-- src/gui/macutilities.mm | 1 - test/testbittorrenttrackerentry.cpp | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/qtlocalpeer/qtlockedfile.h b/src/app/qtlocalpeer/qtlockedfile.h index 63d78aaec..3ea32c61a 100644 --- a/src/app/qtlocalpeer/qtlockedfile.h +++ b/src/app/qtlocalpeer/qtlockedfile.h @@ -71,8 +71,8 @@ #include #ifdef Q_OS_WIN +#include #include -#include #endif namespace QtLP_Private @@ -105,7 +105,7 @@ namespace QtLP_Private Qt::HANDLE m_writeMutex = nullptr; Qt::HANDLE m_readMutex = nullptr; - QVector m_readMutexes; + QList m_readMutexes; QString m_mutexName; #endif diff --git a/src/gui/macutilities.mm b/src/gui/macutilities.mm index 823a1daa9..77a7f450b 100644 --- a/src/gui/macutilities.mm +++ b/src/gui/macutilities.mm @@ -34,7 +34,6 @@ #include #include #include -#include #include "base/path.h" diff --git a/test/testbittorrenttrackerentry.cpp b/test/testbittorrenttrackerentry.cpp index ebac85bcf..24d557fac 100644 --- a/test/testbittorrenttrackerentry.cpp +++ b/test/testbittorrenttrackerentry.cpp @@ -28,9 +28,9 @@ #include +#include #include #include -#include #include "base/bittorrent/trackerentry.h" #include "base/global.h" @@ -46,7 +46,7 @@ public: private slots: void testParseTrackerEntries() const { - using Entries = QVector; + using Entries = QList; const auto isEqual = [](const Entries &left, const Entries &right) -> bool {