Tests: Simplify MyCookieJar

Don't reimplement the protected functions in the base class just
override the access with the using keyword.

Change-Id: I323487d9ddb1d458d5faca020c3eb4d931a9b226
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Jesus Fernandez 2018-10-05 14:53:18 +02:00 committed by Jesus Fernandez
parent 8e28955574
commit d647cf85fa

View File

@ -61,10 +61,8 @@ class MyCookieJar: public QNetworkCookieJar
{
public:
~MyCookieJar() override;
inline QList<QNetworkCookie> allCookies() const
{ return QNetworkCookieJar::allCookies(); }
inline void setAllCookies(const QList<QNetworkCookie> &cookieList)
{ QNetworkCookieJar::setAllCookies(cookieList); }
using QNetworkCookieJar::allCookies;
using QNetworkCookieJar::setAllCookies;
};
MyCookieJar::~MyCookieJar() = default;