From ed8e71072eb76191409159256db4d5c55548742b Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Wed, 15 Oct 2025 11:08:13 -0400 Subject: [PATCH] refactor: use first(n) in place of mid(0, n) --- src/lib/net/SecureUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/net/SecureUtils.cpp b/src/lib/net/SecureUtils.cpp index 9ded12092..99b973a5c 100644 --- a/src/lib/net/SecureUtils.cpp +++ b/src/lib/net/SecureUtils.cpp @@ -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();