Merge pull request #11010 from Chocobo1/qvector

Replace QList by QVector
This commit is contained in:
Mike Tzou
2019-08-06 10:16:28 +08:00
committed by GitHub
31 changed files with 118 additions and 109 deletions

View File

@@ -490,7 +490,8 @@ void SyncController::torrentPeersAction()
QVariantMap data;
QVariantHash peers;
const QList<BitTorrent::PeerInfo> peersList = torrent->peers();
const QVector<BitTorrent::PeerInfo> peersList = torrent->peers();
#ifndef DISABLE_COUNTRIES_RESOLUTION
bool resolvePeerCountries = Preferences::instance()->resolvePeerCountries();

View File

@@ -145,7 +145,7 @@ private:
bool m_isLocalAuthEnabled;
bool m_isAuthSubnetWhitelistEnabled;
QList<Utils::Net::Subnet> m_authSubnetWhitelist;
QVector<Utils::Net::Subnet> m_authSubnetWhitelist;
int m_sessionTimeout;
// security related