refactor: use first(n) in place of mid(0, n)

This commit is contained in:
sithlord48 2025-10-15 11:08:13 -04:00 committed by Nick Bolton
parent dbc3229b40
commit ed8e71072e

View file

@ -158,7 +158,7 @@ QString formatSSLFingerprintColumns(const QByteArray &fingerprint)
QString formatedString;
while (!hex.isEmpty()) {
formatedString.append(hex.mid(0, kmaxColumns));
formatedString.append(hex.first(kmaxColumns));
hex.remove(0, kmaxColumns);
if (formatedString.endsWith(':'))
formatedString.removeLast();