mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-18 06:01:52 +03:00
Replace QVector with QList
Migrated last remnants of QVector to Qlist, reference https://github.com/qbittorrent/qBittorrent/pull/21016#issuecomment-2212403741 onward. PR #21407.
This commit is contained in:
parent
d8e24314ec
commit
c30a07702d
3 changed files with 4 additions and 5 deletions
|
@ -71,8 +71,8 @@
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
|
#include <QList>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QVector>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace QtLP_Private
|
namespace QtLP_Private
|
||||||
|
@ -105,7 +105,7 @@ namespace QtLP_Private
|
||||||
|
|
||||||
Qt::HANDLE m_writeMutex = nullptr;
|
Qt::HANDLE m_writeMutex = nullptr;
|
||||||
Qt::HANDLE m_readMutex = nullptr;
|
Qt::HANDLE m_readMutex = nullptr;
|
||||||
QVector<Qt::HANDLE> m_readMutexes;
|
QList<Qt::HANDLE> m_readMutexes;
|
||||||
QString m_mutexName;
|
QString m_mutexName;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
#include <QSize>
|
#include <QSize>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QVector>
|
|
||||||
|
|
||||||
#include "base/path.h"
|
#include "base/path.h"
|
||||||
|
|
||||||
|
|
|
@ -28,9 +28,9 @@
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
#include <QList>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QVector>
|
|
||||||
|
|
||||||
#include "base/bittorrent/trackerentry.h"
|
#include "base/bittorrent/trackerentry.h"
|
||||||
#include "base/global.h"
|
#include "base/global.h"
|
||||||
|
@ -46,7 +46,7 @@ public:
|
||||||
private slots:
|
private slots:
|
||||||
void testParseTrackerEntries() const
|
void testParseTrackerEntries() const
|
||||||
{
|
{
|
||||||
using Entries = QVector<BitTorrent::TrackerEntry>;
|
using Entries = QList<BitTorrent::TrackerEntry>;
|
||||||
|
|
||||||
const auto isEqual = [](const Entries &left, const Entries &right) -> bool
|
const auto isEqual = [](const Entries &left, const Entries &right) -> bool
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue