D24980: Port ssl_cert_errors meta data from KSslError to QSslError

Ahmad Samir noreply at phabricator.kde.org
Fri Nov 8 21:01:20 GMT 2019


ahmadsamir added inline comments.

INLINE COMMENTS

> jobuidelegate.cpp:365
>                              sslMetaData.value(QStringLiteral("ssl_cipher_bits")).toInt(),
> -                            KSslInfoDialog::errorsFromString(sslMetaData.value(QStringLiteral("ssl_cert_errors"))));
> +                            KSslInfoDialog::certificateErrorsFromString(sslMetaData.value(QStringLiteral("ssl_cert_errors"))));
>              kid->exec();

Nitpick, wouldn't QLatin1String be better here?

c.f. Marc Mutz's talk about QStringLiteral and QLatin1String: https://youtu.be/Ov7s0GgBbOQ?t=2806

> ksslinfodialog.cpp:263
>  }
>  
> +QList<QList<QSslError::SslError>> KSslInfoDialog::certificateErrorsFromString(const QString &errorsString)

Nitpick, shouldn't there be a "// static" comment like the other method?

Wouldn't a QVector be better here (QVector<QList<QSslError::SslError>>)? that is IIUC what the QList docs and [1] are saying.

[1]https://marcmutz.wordpress.com/effective-qt/containers/

REPOSITORY
  R241 KIO

BRANCH
  next

REVISION DETAIL
  https://phabricator.kde.org/D24980

To: vkrause, nicolasfella
Cc: ahmadsamir, nicolasfella, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191108/4cf7dede/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list