fix warning

This commit is contained in:
Olivier Goffart 2014-05-15 11:29:23 +02:00
parent 90ee274744
commit bb929db7e6
2 changed files with 2 additions and 2 deletions

View file

@ -84,7 +84,7 @@ bool CookieJar::setCookiesFromUrl(const QList<QNetworkCookie>& cookieList, const
return false;
}
QList<QNetworkCookie> CookieJar::cookiesForUrl(const QUrl &url)
QList<QNetworkCookie> CookieJar::cookiesForUrl(const QUrl &url) const
{
QList<QNetworkCookie> cookies = QNetworkCookieJar::cookiesForUrl(url);
qDebug() << url << "requests:" << cookies;

View file

@ -25,7 +25,7 @@ public:
explicit CookieJar(QObject *parent = 0);
~CookieJar();
bool setCookiesFromUrl(const QList<QNetworkCookie> &cookieList, const QUrl &url);
QList<QNetworkCookie> cookiesForUrl(const QUrl &url);
QList<QNetworkCookie> cookiesForUrl(const QUrl &url) const;
virtual bool deleteCookie(const QNetworkCookie & cookie);