From 97284ce13005728859fc36b157a93bb4f14e59d2 Mon Sep 17 00:00:00 2001 From: Felix Weilbach Date: Mon, 19 Jul 2021 11:13:22 +0200 Subject: [PATCH] Use Q_UNUSED instead of commenting out arg names Signed-off-by: Felix Weilbach --- src/gui/wizard/webview.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/wizard/webview.cpp b/src/gui/wizard/webview.cpp index 26c9e2107c689..d9cd20922935b 100644 --- a/src/gui/wizard/webview.cpp +++ b/src/gui/wizard/webview.cpp @@ -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;