Просмотр исходного кода

Use Q_UNUSED instead of commenting out arg names

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
Felix Weilbach 4 лет назад
Родитель
Сommit
302651620b
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      src/gui/wizard/webview.cpp

+ 4 - 1
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;