refactor: use first(n) in place of mid(0, n)
This commit is contained in:
parent
dbc3229b40
commit
ed8e71072e
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue