From e1a20fab715ce067bb74b726facbfacaa615ca6d Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 5 Dec 2024 12:15:44 +0800 Subject: [PATCH] Use non-deprecated qChecksum in qtlocalpeer of qtsingleapplication Signed-off-by: Claudio Cambra --- src/3rdparty/qtsingleapplication/qtlocalpeer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/3rdparty/qtsingleapplication/qtlocalpeer.cpp b/src/3rdparty/qtsingleapplication/qtlocalpeer.cpp index 4be57a0286cdb..c5fd6b5d33491 100644 --- a/src/3rdparty/qtsingleapplication/qtlocalpeer.cpp +++ b/src/3rdparty/qtsingleapplication/qtlocalpeer.cpp @@ -51,8 +51,8 @@ static const char ack[] = "ack"; QString QtLocalPeer::appSessionId(const QString &appId) { - QByteArray idc = appId.toUtf8(); - quint16 idNum = qChecksum(idc.constData(), idc.size()); + QByteArrayView idc = appId.toUtf8(); + quint16 idNum = qChecksum(idc, idc.size()); //### could do: two 16bit checksums over separate halves of id, for a 32bit result - improved uniqeness probability. Every-other-char split would be best. QString res = QLatin1String("qtsingleapplication-")