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:
parent
8e28955574
commit
d647cf85fa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user