D24980: Port ssl_cert_errors meta data from KSslError to QSslError

Ahmad Samir noreply at phabricator.kde.org
Sat Nov 9 15:13:55 GMT 2019


ahmadsamir added inline comments.

INLINE COMMENTS

> vkrause wrote in jobuidelegate.cpp:365
> sslMetaData is a QMap<QString, ...>, ie. value() has no QLatin1String overload, calling it with a QLatin1String will work but convert to a QString at runtime (involving a memory allocation), using QStringLiteral avoids that.

Right, value() is what matters here, thanks for explaining.

> vkrause wrote in ksslinfodialog.cpp:263
> In theory, yes. However, changing this here and now would trigger quite some ripple effect through the code, which currently is using QList everywhere, so I'd suggest to do that as a separate change (if at all), to not hide security-relevant changes under lots of QList -> QVector porting noise. The other thing to consider the consistency in this code if we change just a single use from QList to QVector, especially if that's not a performance-sensitive path and Qt6 is supposed to change all this anyway (QList's implementation going away).

OK, thanks for explaining.

(But I think there still should be a "// static" comment for that method).

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/20191109/101b487b/attachment.html>


More information about the Kde-frameworks-devel mailing list