diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-08-25 13:46:05 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-08-25 18:20:23 +0300 |
commit | ff9a420d5c0e44dc3602ab5b05e2d209725644f9 (patch) | |
tree | a55e9a4a6d8377a4a6ac5f5d95d8cf865882baeb /src/gui/sslerrordialog.cpp | |
parent | dd7536d0f930d65a15e9e10cae3209d2651ef58d (diff) |
Minor cleanup
Diffstat (limited to 'src/gui/sslerrordialog.cpp')
-rw-r--r-- | src/gui/sslerrordialog.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/sslerrordialog.cpp b/src/gui/sslerrordialog.cpp index 28162c9b4..dbd066034 100644 --- a/src/gui/sslerrordialog.cpp +++ b/src/gui/sslerrordialog.cpp @@ -30,13 +30,9 @@ namespace Utility { QString escape(const QStringList &l) { return escape(l.join(';')); } } -bool SslDialogErrorHandler::handleErrors(QList<QSslError> errors, const QSslConfiguration &conf, QList<QSslCertificate> *certs, AccountPtr account) +bool SslDialogErrorHandler::handleErrors(const QList<QSslError> &errors, const QSslConfiguration &, QList<QSslCertificate> *certs, AccountPtr account) { - (void)conf; - if (!certs) { - qCCritical(lcSslErrorDialog) << "Certs parameter required but is NULL!"; - return false; - } + Q_ASSERT(certs); SslErrorDialog dlg(account); // whether the failing certs have previously been accepted |