From 5264255af2225faf854e2aa60eed378382567798 Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Sun, 17 Dec 2023 02:10:35 +0100 Subject: [PATCH] Port to Qt6, wrap in QByteArrayView GIT_SILENT Signed-off-by: Juraj Oravec --- src/lib/3rdparty/qtsingleapplication/qtlocalpeer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/3rdparty/qtsingleapplication/qtlocalpeer.cpp b/src/lib/3rdparty/qtsingleapplication/qtlocalpeer.cpp index e37854b6f..a6fa75a2c 100644 --- a/src/lib/3rdparty/qtsingleapplication/qtlocalpeer.cpp +++ b/src/lib/3rdparty/qtsingleapplication/qtlocalpeer.cpp @@ -115,7 +115,7 @@ QtLocalPeer::QtLocalPeer(QObject* parent, const QString &appId) prefix.truncate(6); QByteArray idc = id.toUtf8(); - quint16 idNum = qChecksum(idc.constData(), idc.size()); + quint16 idNum = qChecksum(QByteArrayView(idc.constData(), idc.size())); socketName = QLatin1String("qtsingleapp-") + prefix + QLatin1Char('-') + QString::number(idNum, 16);