Commit 26381464 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Rename methods

parent 0fe8f1cb
Pipeline #55542 canceled with stage
in 12 minutes and 58 seconds
......@@ -34,7 +34,7 @@ bool LoadExternalReferencesUrlInterceptor::interceptRequest(QWebEngineUrlRequest
return false;
} else {
if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeImage && !requestUrl.isLocalFile() && (scheme != QLatin1String("cid"))) {
return urlAuthorized(requestUrl);
return urlIsAuthorized(requestUrl);
} else if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeFontResource) {
return true;
} else if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeStylesheet) {
......@@ -54,7 +54,7 @@ bool LoadExternalReferencesUrlInterceptor::urlIsBlocked(const QUrl &requestedUrl
return false;
}
bool LoadExternalReferencesUrlInterceptor::urlAuthorized(const QUrl &requestedUrl)
bool LoadExternalReferencesUrlInterceptor::urlIsAuthorized(const QUrl &requestedUrl)
{
const QUrl url = requestedUrl.adjusted(QUrl::RemovePath | QUrl::RemovePort | QUrl::RemoveQuery);
bool contains = false;
......
......@@ -24,7 +24,7 @@ Q_SIGNALS:
void urlBlocked(const QUrl &url);
protected:
Q_REQUIRED_RESULT bool urlAuthorized(const QUrl &requestedUrl);
Q_REQUIRED_RESULT bool urlIsAuthorized(const QUrl &requestedUrl);
Q_REQUIRED_RESULT bool urlIsBlocked(const QUrl &requestedUrl);
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment