diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2010-01-28 16:02:59 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2010-01-28 16:07:59 (GMT) |
commit | d381bb257f210432725221952d0a295decd56d91 (patch) | |
tree | 88ed4cd9f4d8c1656066e5a2ce7e0ddd3c090c7c /src/network/access/qnetworkrequest.cpp | |
parent | dfc530e1dd9040e3a8516108a9973af73d092246 (diff) | |
download | Qt-d381bb257f210432725221952d0a295decd56d91.zip Qt-d381bb257f210432725221952d0a295decd56d91.tar.gz Qt-d381bb257f210432725221952d0a295decd56d91.tar.bz2 |
Fix some foreach usage to use const refs
Reviewed-by: joao
Diffstat (limited to 'src/network/access/qnetworkrequest.cpp')
-rw-r--r-- | src/network/access/qnetworkrequest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkrequest.cpp b/src/network/access/qnetworkrequest.cpp index 6dcd05d..a2bef67 100644 --- a/src/network/access/qnetworkrequest.cpp +++ b/src/network/access/qnetworkrequest.cpp @@ -649,7 +649,7 @@ static QVariant parseCookieHeader(const QByteArray &raw) { QList<QNetworkCookie> result; QList<QByteArray> cookieList = raw.split(';'); - foreach (QByteArray cookie, cookieList) { + foreach (const QByteArray &cookie, cookieList) { QList<QNetworkCookie> parsed = QNetworkCookie::parseCookies(cookie.trimmed()); if (parsed.count() != 1) return QVariant(); // invalid Cookie: header |