diff options
| author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-22 12:25:41 +0200 |
|---|---|---|
| committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-26 14:42:43 +0200 |
| commit | 0e6f6507d5920e2566f790007b97bda6441ec577 (patch) | |
| tree | 6b857694bbf1cce37dba4aec3f0267135cc480a4 /src/network/access/qnetworkaccessauthenticationmanager.cpp | |
| parent | db61e43c81f4b5ed8c36365f63c2e2fb81e2a1e7 (diff) | |
Use QList instead of QVector in network
Task-number: QTBUG-84469
Change-Id: I7827da68e73ca8ff1e599c836f2157894c452b63
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/network/access/qnetworkaccessauthenticationmanager.cpp')
| -rw-r--r-- | src/network/access/qnetworkaccessauthenticationmanager.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/network/access/qnetworkaccessauthenticationmanager.cpp b/src/network/access/qnetworkaccessauthenticationmanager.cpp index 0df11684b1a..4899273aa83 100644 --- a/src/network/access/qnetworkaccessauthenticationmanager.cpp +++ b/src/network/access/qnetworkaccessauthenticationmanager.cpp @@ -42,8 +42,8 @@ #include "qnetworkaccessmanager_p.h" #include "QtCore/qbuffer.h" +#include "QtCore/qlist.h" #include "QtCore/qurl.h" -#include "QtCore/qvector.h" #include "QtCore/QMutexLocker" #include "QtNetwork/qauthenticator.h" @@ -51,11 +51,8 @@ QT_BEGIN_NAMESPACE - - - -class QNetworkAuthenticationCache: private QVector<QNetworkAuthenticationCredential>, - public QNetworkAccessCache::CacheableObject +class QNetworkAuthenticationCache : private QList<QNetworkAuthenticationCredential>, + public QNetworkAccessCache::CacheableObject { public: QNetworkAuthenticationCache() @@ -89,9 +86,9 @@ public: newCredential.password = password; if (closestMatch) - QVector<QNetworkAuthenticationCredential>::insert(++closestMatch, newCredential); + QList<QNetworkAuthenticationCredential>::insert(++closestMatch, newCredential); else - QVector<QNetworkAuthenticationCredential>::insert(end(), newCredential); + QList<QNetworkAuthenticationCredential>::insert(end(), newCredential); } } |
