Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Weilbach <felix.weilbach@nextcloud.com>2021-07-19 12:13:22 +0300
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>2021-07-21 20:15:11 +0300
commit302651620b3b7612ef00fd91f27eacbfaf0f491b (patch)
tree1d4af30a1f2b61b7e2ea3ccba649a9ab2362d24f /src
parent3f6bb4a929c5b909522612498de35c8e03c9563d (diff)
Use Q_UNUSED instead of commenting out arg names
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/wizard/webview.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/wizard/webview.cpp b/src/gui/wizard/webview.cpp
index 26c9e2107..d9cd20922 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;