Skip to content

Commit

Permalink
Use Q_UNUSED instead of commenting out arg names
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
  • Loading branch information
Felix Weilbach committed Jul 19, 2021
1 parent ff95aff commit 97284ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/wizard/webview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,11 @@ bool WebEnginePage::certificateError(const QWebEngineCertificateError &certifica
return ret == QMessageBox::Yes;
}

bool WebEnginePage::acceptNavigationRequest(const QUrl &url, QWebEnginePage::NavigationType /*type*/, bool /*isMainFrame*/)
bool WebEnginePage::acceptNavigationRequest(const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame)
{
Q_UNUSED(type);
Q_UNUSED(isMainFrame);

if (_enforceHttps && url.scheme() != QStringLiteral("https")) {
QMessageBox::warning(nullptr, "Security warning", "Can not follow non https link on a https website. This might be a security issue. Please contact your administrator");
return false;
Expand Down

0 comments on commit 97284ce

Please sign in to comment.