fix build with qt 5.12

This commit is contained in:
Martin Rotter 2021-02-24 14:25:49 +01:00
parent a939e237bd
commit 56e723572e
2 changed files with 0 additions and 13 deletions

View File

@ -44,14 +44,6 @@ void AdblockRequestInfo::setFirstPartyUrl(const QUrl& firstPartyUrl) {
m_firstPartyUrl = firstPartyUrl; m_firstPartyUrl = firstPartyUrl;
} }
QUrl AdblockRequestInfo::initiator() const {
return m_initiator;
}
void AdblockRequestInfo::setInitiator(const QUrl& initiator) {
m_initiator = initiator;
}
QByteArray AdblockRequestInfo::requestMethod() const { QByteArray AdblockRequestInfo::requestMethod() const {
return m_requestMethod; return m_requestMethod;
} }
@ -62,7 +54,6 @@ void AdblockRequestInfo::setRequestMethod(const QByteArray& requestMethod) {
void AdblockRequestInfo::initialize(const QWebEngineUrlRequestInfo& webengine_info) { void AdblockRequestInfo::initialize(const QWebEngineUrlRequestInfo& webengine_info) {
setFirstPartyUrl(webengine_info.firstPartyUrl()); setFirstPartyUrl(webengine_info.firstPartyUrl());
setInitiator(webengine_info.initiator());
setNavigationType(webengine_info.navigationType()); setNavigationType(webengine_info.navigationType());
setRequestMethod(webengine_info.requestMethod()); setRequestMethod(webengine_info.requestMethod());
setRequestUrl(webengine_info.requestUrl()); setRequestUrl(webengine_info.requestUrl());
@ -71,7 +62,6 @@ void AdblockRequestInfo::initialize(const QWebEngineUrlRequestInfo& webengine_in
void AdblockRequestInfo::initialize(const QUrl& url) { void AdblockRequestInfo::initialize(const QUrl& url) {
setFirstPartyUrl(url); setFirstPartyUrl(url);
setInitiator(url);
setNavigationType(QWebEngineUrlRequestInfo::NavigationType::NavigationTypeTyped); setNavigationType(QWebEngineUrlRequestInfo::NavigationType::NavigationTypeTyped);
setRequestMethod(QSL("GET").toLocal8Bit()); setRequestMethod(QSL("GET").toLocal8Bit());
setRequestUrl(url); setRequestUrl(url);

View File

@ -22,9 +22,6 @@ class AdblockRequestInfo {
QUrl firstPartyUrl() const; QUrl firstPartyUrl() const;
void setFirstPartyUrl(const QUrl& firstPartyUrl); void setFirstPartyUrl(const QUrl& firstPartyUrl);
QUrl initiator() const;
void setInitiator(const QUrl& initiator);
QByteArray requestMethod() const; QByteArray requestMethod() const;
void setRequestMethod(const QByteArray& requestMethod); void setRequestMethod(const QByteArray& requestMethod);